You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
➜ Local: http://localhost:3333/
➜ Network: use --host to expose
__name is not defined
15:37:31 [vite] Internal server error: __name is not defined
Plugin: vite:vue
File: /home/projects/vitejs-vite-4yfru7/src/App.vue
at SortTemplate (eval at _0x326f78 (https://vitejsvite4yfru7-rqa2.w-corp.staticblitz.com/blitz.bec01ace.js:42:351884), :3:107)
at cloneSort (file:///home/projects/vitejs-vite-4yfru7/node_modules/source-map-js/lib/quick-sort.js:2:892)
at exports.quickSort (file:///home/projects/vitejs-vite-4yfru7/node_modules/source-map-js/lib/quick-sort.js:2:1101)
at BasicSourceMapConsumer.SourceMapConsumer_parseMappings [as _parseMappings] (file:///home/projects/vitejs-vite-4yfru7/node_modules/source-map-js/lib/source-map-consumer.js:2:10514)
at BasicSourceMapConsumer.get [as _generatedMappings] (file:///home/projects/vitejs-vite-4yfru7/node_modules/source-map-js/lib/source-map-consumer.js:2:1045)
at BasicSourceMapConsumer.SourceMapConsumer_eachMapping [as eachMapping] (file:///home/projects/vitejs-vite-4yfru7/node_modules/source-map-js/lib/source-map-consumer.js:2:2256)
at mapLines (file:///home/projects/vitejs-vite-4yfru7/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js:14:466)
at doCompileTemplate (file:///home/projects/vitejs-vite-4yfru7/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js:13:2410)
at Object.compileTemplate (file:///home/projects/vitejs-vite-4yfru7/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js:13:1053)
at compile (file:///home/projects/vitejs-vite-4yfru7/node_modules/@vitejs/plugin-vue/dist/index.cjs:167:35)
^C
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
I ran a js file through node to start vite but it reported an error
Reproduction
https://stackblitz.com/edit/vitejs-vite-4yfru7
Steps to reproduce
No response
System Info
Used Package Manager
npm
Logs
~/projects/vitejs-vite-4yfru7
❯ npm install && npm run dev
added 49 packages in 6s
7 packages are looking for funding
run
npm fund
for details➜ Local: http://localhost:3333/
➜ Network: use --host to expose
__name is not defined
15:37:31 [vite] Internal server error: __name is not defined
Plugin: vite:vue
File: /home/projects/vitejs-vite-4yfru7/src/App.vue
at SortTemplate (eval at _0x326f78 (https://vitejsvite4yfru7-rqa2.w-corp.staticblitz.com/blitz.bec01ace.js:42:351884), :3:107)
at cloneSort (file:///home/projects/vitejs-vite-4yfru7/node_modules/source-map-js/lib/quick-sort.js:2:892)
at exports.quickSort (file:///home/projects/vitejs-vite-4yfru7/node_modules/source-map-js/lib/quick-sort.js:2:1101)
at BasicSourceMapConsumer.SourceMapConsumer_parseMappings [as _parseMappings] (file:///home/projects/vitejs-vite-4yfru7/node_modules/source-map-js/lib/source-map-consumer.js:2:10514)
at BasicSourceMapConsumer.get [as _generatedMappings] (file:///home/projects/vitejs-vite-4yfru7/node_modules/source-map-js/lib/source-map-consumer.js:2:1045)
at BasicSourceMapConsumer.SourceMapConsumer_eachMapping [as eachMapping] (file:///home/projects/vitejs-vite-4yfru7/node_modules/source-map-js/lib/source-map-consumer.js:2:2256)
at mapLines (file:///home/projects/vitejs-vite-4yfru7/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js:14:466)
at doCompileTemplate (file:///home/projects/vitejs-vite-4yfru7/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js:13:2410)
at Object.compileTemplate (file:///home/projects/vitejs-vite-4yfru7/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js:13:1053)
at compile (file:///home/projects/vitejs-vite-4yfru7/node_modules/@vitejs/plugin-vue/dist/index.cjs:167:35)
^C
~/projects/vitejs-vite-4yfru7 1m 1s
❯
Validations
The text was updated successfully, but these errors were encountered: