\n \u003CNuxtWelcome />\n \u003C/div>\n\u003C/template>\n\n\u003Cscript lang=\"js\">\nimport * as demo from './demo.mjs'\n\nconsole.log(demo['name.with.dots'])\n\u003C/script>\n\n```\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell-script\n> build\n> nuxt build\n\nNuxt 3.16.0 with Nitro 2.11.5 nuxi 18:04:46\nℹ Building for Nitro preset: node-server nuxi 18:04:46\nℹ Building client... 18:04:47\nℹ vite v6.2.1 building for production... 18:04:47\nℹ ✓ 128 modules transformed. 18:04:48\nℹ .nuxt/dist/client/manifest.json 1.06 kB │ gzip: 0.29 kB 18:04:48\nℹ .nuxt/dist/client/_nuxt/error-500.dGVH929u.css 1.88 kB │ gzip: 0.72 kB 18:04:48\nℹ .nuxt/dist/client/_nuxt/error-404.C3V-3Mc4.css 3.56 kB │ gzip: 1.10 kB 18:04:48\nℹ .nuxt/dist/client/_nuxt/entry.ofCu9KLV.css 12.41 kB │ gzip: 2.57 kB 18:04:48\nℹ .nuxt/dist/client/_nuxt/z7DXRpCd.js 3.39 kB │ gzip: 1.53 kB 18:04:48\nℹ .nuxt/dist/client/_nuxt/DUuvXmrT.js 9.42 kB │ gzip: 3.76 kB 18:04:48\nℹ .nuxt/dist/client/_nuxt/y94aZ4V3.js 220.05 kB │ gzip: 63.21 kB 18:04:48\nℹ ✓ built in 906ms 18:04:48\n✔ Client built in 921ms 18:04:48\nℹ Building server... 18:04:48\nℹ vite v6.2.1 building SSR bundle for production... 18:04:48\nℹ ✓ 53 modules transformed. 18:04:48\n\n ERROR ✗ Build failed in 350ms 18:04:48\n\n\n ERROR Nuxt Build Error: [vite:esbuild-transpile] Transform failed with 1 error: nuxi 18:04:48\ndemo.mjs:3:14: ERROR: Using the string \"name.with.dots\" as an export name is not supported in the configured target environment (\"chrome87\", \"edge88\", \"es2020\", \"firefox78\", \"safari14\" + 2 overrides)\nfile: demo.mjs:3:14\n\nUsing the string \"name.with.dots\" as an export name is not supported in the configured target environment (\"chrome87\", \"edge88\", \"es2020\", \"firefox78\", \"safari14\" + 2 overrides)\n1 | const a = 10;\n2 |\n3 | export { a as \"name.with.dots\" };\n | ^\n\n\n demo.mjs:3:14: ERROR: Using the string \"name.with.dots\" as an export name is not supported in the configured target environment (\"chrome87\", \"edge88\", \"es2020\", \"firefox78\", \"safari14\" + 2 overrides)\n file: demo.mjs:3:14\n\n Using the string \"name.with.dots\" as an export name is not supported in the configured target environment (\"chrome87\", \"edge88\", \"es2020\", \"firefox78\", \"safari14\" + 2 overrides)\n 1 | const a = 10;\n 2 |\n 3 | export { a as \"name.with.dots\" };\n | ^\n\n at failureErrorWithLog (node_modules\\esbuild\\lib\\main.js:1477:15)\n at node_modules\\esbuild\\lib\\main.js:756:50\n at responseCallbacks.\u003Ccomputed> (node_modules\\esbuild\\lib\\main.js:623:9)\n at handleIncomingPacket (node_modules\\esbuild\\lib\\main.js:678:12)\n at Socket.readFromStdout (node_modules\\esbuild\\lib\\main.js:601:7)\n at Socket.emit (node:events:524:28)\n at addChunk (node:internal/streams/readable:561:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n at Readable.push (node:internal/streams/readable:392:5)\n at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)\n\n```",[2878,2881],{"name":2879,"color":2880},"workaround available","11376d",{"name":2866,"color":2867},31266,"closed","Building code dependent on named imports fails in 3.16.0","2025-04-18T11:02:36Z","https://github.com/nuxt/nuxt/issues/31266",0.6229702,{"description":2889,"labels":2890,"number":2894,"owner":2869,"repository":2869,"state":2883,"title":2895,"updated_at":2896,"url":2897,"score":2898},"This looks like something with my project specifically (a new empty nuxt project does work), but I am a bit lost and after looking for 2 days I dont know anymore. Hopefully somebody here can put me on the right track.\r\n\r\nThe issue is that building my project works fine, e.g. after `npm run dev` I have the following output (using vue version 2.3.4):\r\n```\r\nDONE Compiled successfully in 463ms\r\n> Open http://0.0.0.0:3000\r\nnuxt:render Rendering url / +6s\r\n```\r\n\r\nBut in my browser I receive the following error:\r\n```\r\nNuxt.js Error:\r\n\r\nTypeError: __webpack_require__.i(...) is not a function\r\n at Object.module.exports.Object.defineProperty.value (~/babel-runtime/helpers/typeof.js:13:63)\r\n at __webpack_require__ (webpack:/webpack/bootstrap 32d2034bb6fb3978fa81:25:0)\r\n at Object.\u003Canonymous> (server-bundle.js:480:122)\r\n at __webpack_require__ (webpack:/webpack/bootstrap 32d2034bb6fb3978fa81:25:0)\r\n at Object.module.exports.__webpack_exports__.a (server-bundle.js:1290:66)\r\n at __webpack_require__ (webpack:/webpack/bootstrap 32d2034bb6fb3978fa81:25:0)\r\n at Object.\u003Canonymous> (server-bundle.js:1881:65)\r\n at __webpack_require__ (webpack:/webpack/bootstrap 32d2034bb6fb3978fa81:25:0)\r\n at server-bundle.js:95:18\r\n at Object.\u003Canonymous> (server-bundle.js:98:10)\r\n at evaluateModule (/var/www/nuxt/node_modules/vue-server-renderer/build.js:5820:21)\r\n at /var/www/nuxt/node_modules/vue-server-renderer/build.js:5878:18\r\n at Promise (\u003Canonymous>)\r\n at /var/www/nuxt/node_modules/vue-server-renderer/build.js:5870:14\r\n at Nuxt.renderToString (/var/www/nuxt/node_modules/vue-server-renderer/build.js:6022:9)\r\n at P (/var/www/nuxt/node_modules/nuxt/node_modules/pify/index.js:49:6)\r\n```\r\n\r\nI have removed node_modules already and re-installed all dependencies from scratch but that doesnt help. Any ideas where I should be looking?\n\n\u003C!--cmty-->\u003C!--cmty_prevent_hook-->\n\u003Cdiv align=\"right\">\u003Csub>\u003Cem>This bug report is available on \u003Ca href=\"https://nuxtjs.cmty.io\">Nuxt.js\u003C/a> community (\u003Ca href=\"https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c970\">#c970\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[2891],{"name":2892,"color":2893},"2.x","d4c5f9",1109,"Nuxt webpack error in browser only, not during build","2023-01-18T15:40:45Z","https://github.com/nuxt/nuxt/issues/1109",0.6330183,{"description":2900,"labels":2901,"number":2904,"owner":2869,"repository":2869,"state":2883,"title":2905,"updated_at":2906,"url":2907,"score":2908},"### Versions\r\n\r\n- nuxt: `2.14.2`\r\n- node: `15.0.1`\r\n\r\n### Reproduction\r\n\r\nJust install dependencies and run `yarn dev` to build the project.\r\n\r\n### Steps to reproduce\r\n\r\nSee above\r\n\r\n### What is Expected?\r\n\r\nBoth Client and Server bundle being build properly, app runs without any dependency errors.\r\n\r\n### What is actually happening?\r\n\r\nLocally Client bundle is getting stuck at 68-69% while building . After a while it passes to the end, but there's a lot of warnings from `./node_modules` and 154 dependencies are missing.\r\n\r\nWhile build on Netlify, logs errors starts from\r\n\r\n```\r\n[fatal] Nuxt build error\r\n6:51:52 PM: ERROR in ./node_modules/sirv/build.mjs 42:18-22\r\n6:51:52 PM: Can't import the named export 'join' from non EcmaScript module (only default export is available)\r\n@ (webpack)-bundle-analyzer/lib/viewer.js\r\n```\r\n\r\nDon't exactly know when it started to happen. I'm almost certain that I didn't added any new dependency whatsoever. I've already searched for some solution, but nothing really helped with it. I'm completely stuck with this, can anyone help me? :( \r\n\r\nHere's my package.json file:\r\n\r\n```\r\n{\r\n \"name\": \"olszowski-nuxt-prismic\",\r\n \"version\": \"1.0.0\",\r\n \"private\": true,\r\n \"scripts\": {\r\n \"dev\": \"nuxt\",\r\n \"build\": \"nuxt build\",\r\n \"start\": \"nuxt start\",\r\n \"generate\": \"nuxt generate\"\r\n },\r\n \"dependencies\": {\r\n \"@babel/preset-env\": \"~7.12.0\",\r\n \"@nuxtjs/axios\": \"^5.13.1\",\r\n \"@nuxtjs/prismic\": \"^1.2.6\",\r\n \"@prismicio/client\": \"^4.0.0\",\r\n \"core-js\": \"^3.8.3\",\r\n \"node-sass\": \"^5.0.0\",\r\n \"nuxt\": \"^2.14.2\",\r\n \"nuxt-lazy-load\": \"^1.2.6\",\r\n \"prismic-javascript\": \"^3.0.2\",\r\n \"sass-loader\": \"^10.1.1\",\r\n \"vuex\": \"^3.6.2\"\r\n },\r\n \"devDependencies\": {},\r\n \"resolutions\": {\r\n \"@babel/preset-env\": \"7.12.17\"\r\n }\r\n}\r\n\r\n```",[2902,2903],{"name":2866,"color":2867},{"name":2892,"color":2893},9230,"Nuxt getting stuck while Client build","2023-01-22T15:44:51Z","https://github.com/nuxt/nuxt/issues/9230",0.63511306,{"labels":2910,"number":2911,"owner":2869,"repository":2869,"state":2883,"title":2912,"updated_at":2913,"url":2914,"score":2915},[],13133,"Cannot start nuxt: Named export 'ESBuildMinifyPlugin' not found","2023-01-19T16:47:39Z","https://github.com/nuxt/nuxt/issues/13133",0.6354617,{"description":2917,"labels":2918,"number":2923,"owner":2869,"repository":2869,"state":2883,"title":2924,"updated_at":2925,"url":2926,"score":2927},"### Environment\n\n------------------------------\r\n- Operating System: `Darwin`\r\n- Node Version: `v16.4.2`\r\n- Nuxt Version: `3.0.0`\r\n- Nitro Version: `1.0.0`\r\n- Package Manager: `npm@7.18.1`\r\n- Builder: `vite`\r\n- User Config: `-`\r\n- Runtime Modules: `-`\r\n- Build Modules: `-`\r\n------------------------------\n\n### Reproduction\n\nShould be obvious. Error occurs after installing nuxt 3\r\nHere is my package:\r\n\r\n```\r\n{\r\n \"private\": true,\r\n \"scripts\": {\r\n \"build\": \"nuxt build\",\r\n \"dev\": \"nuxt dev --hostname 'localhost' --port 8083\",\r\n \"start\": \"node .output/server/index.mjs\",\r\n \"generate\": \"nuxt generate\",\r\n \"preview\": \"nuxt preview\"\r\n },\r\n \"devDependencies\": {\r\n \"@nuxtjs/vuetify\": \"^1.12.3\",\r\n \"nuxt\": \"^3.0.0\"\r\n },\r\n \"dependencies\": {\r\n \"@mdi/font\": \"^7.0.96\",\r\n \"@nuxt/types\": \"^2.15.8\",\r\n \"@pinia/nuxt\": \"^0.4.4\",\r\n \"@types/leaflet\": \"^1.7.11\",\r\n \"@types/luxon\": \"^2.3.2\",\r\n \"@vuepic/vue-datepicker\": \"^3.3.0\",\r\n \"axios\": \"^0.27.2\",\r\n \"click-outside-vue3\": \"^4.0.1\",\r\n \"leaflet\": \"^1.8.0\",\r\n \"luxon\": \"^2.4.0\",\r\n \"pinia\": \"^2.0.24\",\r\n \"sass\": \"^1.56.1\",\r\n \"vue-advanced-cropper\": \"^2.8.3\",\r\n \"vue-dndrop\": \"^1.2.13\",\r\n \"vue-waypoint\": \"^4.2.1\",\r\n \"vuetify\": \"^3.0.0\"\r\n }\r\n}\r\n```\n\n### Describe the bug\n\n\r\n\r\n`nuxt.config.ts` \r\n\r\n```\r\nimport { defineNuxtConfig } from 'nuxt'\r\n\r\n// https://v3.nuxtjs.org/api/configuration/nuxt.config\r\nexport default defineNuxtConfig({\r\n css: ['vuetify/lib/styles/main.sass', '@mdi/font/css/materialdesignicons.min.css', '@/assets/sass/main.sass', 'leaflet/dist/leaflet.css'],\r\n build: {\r\n transpile: ['vuetify'],\r\n },\r\n serverMiddleware: [\r\n '~/server-middleware/https-redirect'\r\n ],\r\n vite: {\r\n define: {\r\n 'process.env.DEBUG': false,\r\n },\r\n },\r\n modules: [\r\n '@pinia/nuxt'\r\n ],\r\n runtimeConfig: {\r\n public: {\r\n API_BASE_URL: process.env.API_BASE_URL,\r\n PUBLIC_API_USERNAME: process.env.PUBLIC_API_USERNAME,\r\n PUBLIC_API_PASSWORD: process.env.PUBLIC_API_PASSWORD,\r\n }\r\n },\r\n ssr: false, // Disable server side rendering\r\n meta: {\r\n title: 'Smart Wendeler Land',\r\n }\r\n})\r\n\r\n```\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell\nERROR Cannot start nuxt: (0 , _nuxt.defineNuxtConfig) is not a function 16:03:58\r\n\r\n at nuxt.config.ts:4:43\r\n at Object.jiti (node_modules/jiti/dist/jiti.js:1:247502)\r\n at resolveConfig (node_modules/c12/dist/index.mjs:221:24)\r\n at loadConfig (node_modules/c12/dist/index.mjs:104:40)\r\n at async loadNuxtConfig (node_modules/@nuxt/kit/dist/index.mjs:446:18)\r\n at async loadNuxt (node_modules/nuxt/dist/index.mjs:1835:19)\r\n at async loadNuxt (node_modules/@nuxt/kit/dist/index.mjs:493:19)\r\n at async load (node_modules/nuxi/dist/chunks/dev.mjs:6768:23)\r\n at async Object.invoke (node_modules/nuxi/dist/chunks/dev.mjs:6840:5)\r\n at async _main (node_modules/nuxi/dist/cli.mjs:50:20)\r\n\r\n```\n```\n",[2919,2922],{"name":2920,"color":2921},"3.x","29bc7f",{"name":2866,"color":2867},15542,"Module '\"nuxt\"' has no exported member 'defineNuxtConfig'.","2023-01-19T17:53:38Z","https://github.com/nuxt/nuxt/issues/15542",0.63579273,{"labels":2929,"number":2941,"owner":2869,"repository":2869,"state":2883,"title":2942,"updated_at":2943,"url":2944,"score":2945},[2930,2931,2932,2935,2938],{"name":2920,"color":2921},{"name":2879,"color":2880},{"name":2933,"color":2934},"bug","d73a4a",{"name":2936,"color":2937},"webpack","650C6F",{"name":2939,"color":2940},"❗ p4-important","D93F0B",19689,"webpack builder errors with relative imports in nuxt runtime directory","2023-03-27T06:10:09Z","https://github.com/nuxt/nuxt/issues/19689",0.63650346,{"labels":2947,"number":2950,"owner":2869,"repository":2869,"state":2883,"title":2951,"updated_at":2952,"url":2953,"score":2954},[2948,2949],{"name":2920,"color":2921},{"name":2933,"color":2934},12269,"nuxt modules importing esm packages","2023-01-19T16:03:06Z","https://github.com/nuxt/nuxt/issues/12269",0.63763684,{"description":2956,"labels":2957,"number":2963,"owner":2869,"repository":2869,"state":2883,"title":2964,"updated_at":2965,"url":2966,"score":2967},"### Environment\r\n\r\n------------------------------\r\n- Operating System: Windows_NT\r\n- Node Version: v20.11.1\r\n- Nuxt Version: 3.10.3\r\n- CLI Version: 3.10.1\r\n- Nitro Version: 2.9.0\r\n- Package Manager: npm@10.4.0\r\n- Builder: -\r\n- User Config: debug, runtimeConfig, devtools, modules, security, ui, css, app, supabase\r\n- Runtime Modules: @nuxtjs/supabase@1.1.6, @vueuse/nuxt@10.9.0, @pinia/nuxt@0.5.1, @nuxt/ui@2.14.1, @pinia-plugin-persistedstate/nuxt@1.2.0, nuxt-icon@0.6.8, @nuxt/image@1.3.0, nuxt-security@1.2.1\r\n- Build Modules: -\r\n------------------------------\r\n\r\n### Reproduction\r\n\r\ncode failing to build after upgrade from nuxt 3.9.0 to 3.10.* code fails to build.\r\nInitial error was \r\n\r\n> ` Nuxt Build Error: [unctx:transform] Unexpected token (65:4) file: .....` \r\n\r\nThough no change has been made to this file and code run normally with npm run dev, it now fails at npm run build.\r\nI commented the code out and now get a new error: \r\n\r\n> `Nuxt Build Error: [vite:build-import-analysis] Failed to parse source for import analysis because the content contains invalid JS syntax. Install @vitejs/plugin-vue to handle .vue files` \r\n\r\n\r\n\r\n### Describe the bug\r\n\r\nCode which was working fine and was also able to build now failing at build after upgrade\r\n\r\ncode failing to build after upgrade from nuxt 3.9.0 to 3.10.* code fails to build.\r\nInitial error was \r\n\r\n> ` Nuxt Build Error: [unctx:transform] Unexpected token (65:4) file: D:/proj/pages/auth/register.vue?macro=true:65:4`\r\n> \r\n> at pp$4.raise (/D:/proj/node_modules/acorn/dist/acorn.mjs:3567:13)\r\n> at pp$9.unexpected (/D:/proj/node_modules/acorn/dist/acorn.mjs:766:8)\r\n> at pp$5.parseExprAtomDefault (/D:/proj/node_modules/acorn/dist/acorn.mjs:2930:8)\r\n> at pp$5.parseExprAtom (/D:/proj/node_modules/acorn/dist/acorn.mjs:2925:17)\r\n> at pp$5.parseExprSubscripts (/D:/proj/node_modules/acorn/dist/acorn.mjs:2709:19)\r\n> at pp$5.parseMaybeUnary (/D:/proj/node_modules/acorn/dist/acorn.mjs:2675:17)\r\n> at pp$5.parseExprOps (/D:/proj/node_modules/acorn/dist/acorn.mjs:2602:19)\r\n> at pp$5.parseMaybeConditional (/D:/proj/node_modules/acorn/dist/acorn.mjs:2585:19)\r\n> at pp$5.parseMaybeAssign (/D:/proj/node_modules/acorn/dist/acorn.mjs:2552:19)\r\n> at pp$5.parseExpression (/D:/proj/node_modules/acorn/dist/acorn.mjs:2515:19) \r\n\r\nThough no change has been made to this file and code run normally with npm run dev, it now fails at npm run build.\r\nI commented the code out and now get a new error: \r\n\r\n> `Nuxt Build Error: [vite:build-import-analysis] Failed to parse source for import analysis because the content contains invalid JS syntax. Install @vitejs/plugin-vue to handle .vue files` \r\n\r\nSeems to be related to these issues:\r\n\r\n> [(https://github.com/nuxt/nuxt/issues/25513)](https://github.com/nuxt/nuxt/issues/25513)\r\n\r\n> [https://github.com/nuxt/nuxt/issues/25541](https://github.com/nuxt/nuxt/issues/25541)\r\n\r\nand is supposed to be fixed with the version I am on but it doesn't work.\r\n\r\nAnyone has a solution or workaround?\r\n\r\n\r\nThanks!\r\n\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Logs\r\n\r\n_No response_",[2958,2959,2960],{"name":2920,"color":2921},{"name":2866,"color":2867},{"name":2961,"color":2962},"needs reproduction","FBCA04",26011,"Code Unable to Build - Nuxt Build Error: [vite:build-import-analysis] Failed to parse source for import analysis because the content contains invalid JS syntax. Install @vitejs/plugin-vue to handle .vue files","2024-03-04T13:40:33Z","https://github.com/nuxt/nuxt/issues/26011",0.63804793,{"labels":2969,"number":2972,"owner":2869,"repository":2869,"state":2883,"title":2973,"updated_at":2974,"url":2975,"score":2976},[2970,2971],{"name":2866,"color":2867},{"name":2892,"color":2893},8882,"Nuxt not building due to upstream @babel/preset-env change","2023-06-10T05:22:55Z","https://github.com/nuxt/nuxt/issues/8882",0.6381695,["Reactive",2978],{},["Set"],["ShallowReactive",2981],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fqScmILhPPh_DMIiMn3bYKRDktX9fhlJb1BU5N0__hto":-1},"/nuxt/nuxt.com/718"]