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
I am trying to switch from webpack to using vite within an electron app.
I had success running the blank electron vite template app, however once I introduced the use of SFC Vue3 components I began getting an error indicating the SFC format couldn't be parsed, and that I should install the vite plugin-vue package, despite having it installed and set as the first plugin in the vite config.
[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.
file: C:/vite-beet/src/components/popups.vue:153:9
151: return injectChips;
152: });
153: </script>
^
154:
155: <template>
error during build:
RollupError: Failed to parse source for import analysis because the content contains invalid JS syntax. Install @vitejs/plugin-vue to handle .vue files.
at error (file:///C:/vite-beet/node_modules/rollup/dist/es/shared/parseAst.js:337:30)
at Object.error (file:///C:/vite-beet/node_modules/rollup/dist/es/shared/node-entry.js:18457:20)
at Object.error (file:///C:/vite-beet/node_modules/rollup/dist/es/shared/node-entry.js:17566:42)
at Object.transform (file:///C:/vite-beet/node_modules/vite/dist/node/chunks/dep-R0I0XnyH.js:66044:22)
Which is weird, because the dev dependencies show it's installed:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to switch from webpack to using vite within an electron app.
I had success running the blank electron vite template app, however once I introduced the use of SFC Vue3 components I began getting an error indicating the SFC format couldn't be parsed, and that I should install the vite plugin-vue package, despite having it installed and set as the first plugin in the vite config.
beetapp/beeteos#7 (comment)
Which is weird, because the dev dependencies show it's installed:
And it's also included in the vite config file's plugins:
Has anyone run into this kind of issue before? Any tips for how to resolve this?
Thanks for the help :)
Related: #331
Beta Was this translation helpful? Give feedback.
All reactions