Closed 52javascript closed 1 year ago
Hello @52javascript. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with need reproduction
will be closed if they have no activity within 3 days.
link to reproduction: https://stackblitz.com/edit/typescript-budg4p?file=start.yml
I encountered the same problem, It is related to vue@3.3.x , Attempt to lower version like 3.2.45.
Related plugins
[X] plugin-vue
[X] plugin-vue-jsx
Describe the bug
When I use rollup to build vue3 , the error append
Reproduction
11
Steps to reproduce
gulp --require @esbuild-kit/cjs-loader -f gulpfile.ts
System Info
Used Package Manager
pnpm
Logs
[14:17:45] Requiring external module @esbuild-kit/cjs-loader [14:17:47] Using gulpfile E:\WebstormProjects\wt-crud-v2\build\gulpfile.ts [14:17:47] Starting 'default'... [14:17:47] Starting 'clean'...
[14:17:47] Finished 'clean' after 617 ms [14:17:47] Starting 'build'... [14:17:49] 'build' errored after 1.43 s [14:17:49] ReferenceError: __name is not defined at SortTemplate (eval at cloneSort (E:\WebstormProjects\wt-crud-v2\node_modules.pnpm\registry.npmmirror.com+source-map-js@1.0.2\node_modules\source-map-js\lib\quick-sort.js:1:848),:3:107)
at cloneSort (e:\WebstormProjects\wt-crud-v2\node_modules.pnpm\registry.npmmirror.com+source-map-js@1.0.2\node_modules\source-map-js\lib\quick-sort.js:112:10)
at exports.quickSort (e:\WebstormProjects\wt-crud-v2\node_modules.pnpm\registry.npmmirror.com+source-map-js@1.0.2\node_modules\source-map-js\lib\quick-sort.js:128:19)
at BasicSourceMapConsumer.SourceMapConsumer_parseMappings (e:\WebstormProjects\wt-crud-v2\node_modules.pnpm\registry.npmmirror.com+source-map-js@1.0.2\node_modules\source-map-js\lib\source-map-consumer.js:604:9) at BasicSourceMapConsumer.get (e:\WebstormProjects\wt-crud-v2\node_modules.pnpm\registry.npmmirror.com+source-map-js@1.0.2\node_modules\source-map-js\lib\source-map-consumer.js:70:12) at BasicSourceMapConsumer.SourceMapConsumer_eachMapping (e:\WebstormProjects\wt-crud-v2\node_modules.pnpm\registry.npmmirror.com+source-map-js@1.0.2\node_modules\source-map-js\lib\source-map-consumer.js:136:23) at mapLines (e:\WebstormProjects\wt-crud-v2\node_modules.pnpm\registry.npmmirror.com+@vue+compiler-sfc@3.3.4\node_modules\@vue\compiler-sfc\dist\compiler-sfc.cjs.js:3672:18) at doCompileTemplate (e:\WebstormProjects\wt-crud-v2\node_modules.pnpm\registry.npmmirror.com+@vue+compiler-sfc@3.3.4\node_modules\@vue\compiler-sfc\dist\compiler-sfc.cjs.js:3644:13) at Object.compileTemplate (e:\WebstormProjects\wt-crud-v2\node_modules.pnpm\registry.npmmirror.com+@vue+compiler-sfc@3.3.4\node_modules\@vue\compiler-sfc\dist\compiler-sfc.cjs.js:3587:12) at compile (E:\WebstormProjects\wt-crud-v2\node_modules.pnpm\registry.npmmirror.com+@vitejs+plugin-vue@4.2.3_vite@4.3.9_vue@3.3.4\node_modules\@vitejs\plugin-vue\dist\index.cjs:167:35) [14:17:49] 'default' errored after 2.08 s ELIFECYCLE Command failed with exit code 1.
Process finished with exit code 1
Validations