svg-sprite icon indicating copy to clipboard operation
svg-sprite copied to clipboard

I have error on nuxt 3.10.0

Open fenn1ks opened this issue 1 year ago • 6 comments

please help me with this problem When building a project in webstorm, the console says: [10:05:07 AM] ERROR Pre-transform error: Failed to parse source for import analysis because the content contains invalid JS syntax. If you are using JSX, make sure to name the file with the .jsx or .tsx extension.

and on the page 500 [vite-node] [plugin:vite:import-analysis] [VITE_ERROR] virtual:nuxt:C:/someadresstoproject/.nuxt/routes.mjs:10:3

8 | redirect: icons_45pageK3BpbB8TSHMeta?.redirect, 9 | component: () => import("C:/someadresstoproject/node_modules/@nuxtjs/svg-sprite/dist/runtime/components/icons-page.vue").then(m => m.default || m) 10 | } | ^ 11 | ]

at virtual:nuxt:C:/someadresstoproject/.nuxt/routes.mjs:10:3

fenn1ks avatar Feb 02 '24 08:02 fenn1ks

Same here, started with some routine maintenance yesterday.

[09:14:01]  ERROR  Pre-transform error: Failed to parse source for import analysis because the content contains invalid JS syntax. If you are using JSX, make sure to name the file with the .jsx or .tsx extension.

Zellement avatar Feb 02 '24 09:02 Zellement

Seemingly seems to be an issue with this package and Nuxt 3.10.0, @fenn1ks - try using Nuxt 3.9.0

Zellement avatar Feb 02 '24 09:02 Zellement

Seemingly seems to be an issue with this package and Nuxt 3.10.0, @fenn1ks - try using Nuxt 3.9.0

thanks, I'll try it now, but I'd like to use the actual version of Nuxt

fenn1ks avatar Feb 02 '24 09:02 fenn1ks

@Zellement This also works on 3.9.3

fenn1ks avatar Feb 02 '24 11:02 fenn1ks

@fenn1ks

fork

teleskop150750 avatar Feb 20 '24 13:02 teleskop150750

works on 3.10.2 NUXT

fenn1ks avatar Feb 21 '24 15:02 fenn1ks