Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

当组件包含指令时,build报错 #2825

Open
sinsy opened this issue Apr 14, 2021 · 0 comments
Open

当组件包含指令时,build报错 #2825

sinsy opened this issue Apr 14, 2021 · 0 comments

Comments

@sinsy
Copy link

sinsy commented Apr 14, 2021

details: 'SyntaxError: \n' +
'\x1B[31mVueCompilerError: Custom directive is missing corresponding SSR transform and will be ignored.\x1B[39m\n' +
'\x1B[90mat D:\tz-ui\packages\tz-dialog\index.vue:3:10\x1B[39m\n' +
'\x1B[33m1 | \x1B[39m\n' +
'\x1B[33m2 | \x1B[39m\n' +
'\x1B[33m3 |

\x1B[39m\n' +
'\x1B[33m | ^^^^^^^^^^^\x1B[39m\n' +
'\x1B[33m4 | \x1B[39m\n' +
'\x1B[33m5 | <template #footer>\x1B[39m\n' +
'\n' +
' at Object.createCompilerError (D:\tz-ui\node_modules\@VUE\compiler-core\dist\compiler-core.cjs.prod.js:16:19)\n' +
' at createSSRCompilerError (D:\tz-ui\node_modules\@VUE\compiler-ssr\dist\compiler-ssr.cjs.js:143:24)\n' +
' at Array.ssrPostTransformElement (D:\tz-ui\node_modules\@VUE\compiler-ssr\dist\compiler-ssr.cjs.js:595:41)\n' +
' at traverseNode (D:\tz-ui\node_modules\@VUE\compiler-core\dist\compiler-core.cjs.prod.js:1749:19)\n' +
' at traverseChildren (D:\tz-ui\node_modules\@VUE\compiler-core\dist\compiler-core.cjs.prod.js:1691:9)\n' +
' at traverseNode (D:\tz-ui\node_modules\@VUE\compiler-core\dist\compiler-core.cjs.prod.js:1742:13)\n' +
' at traverseChildren (D:\tz-ui\node_modules\@VUE\compiler-core\dist\compiler-core.cjs.prod.js:1691:9)\n' +
' at traverseNode (D:\tz-ui\node_modules\@VUE\compiler-core\dist\compiler-core.cjs.prod.js:1742:13)\n' +
' at Object.transform (D:\tz-ui\node_modules\@VUE\compiler-core\dist\compiler-core.cjs.prod.js:1628:5)\n' +
' at Object.compile (D:\tz-ui\node_modules\@VUE\compiler-ssr\dist\compiler-ssr.cjs.js:1103:17)',
stack: 'ModuleError: Module Error (from ./node_modules/vue-loader/dist/templateLoader.js):\n' +

@sinsy sinsy changed the title build报错,组件包含指令时 当组件包含指令时,build报错 Apr 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant