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
On build vite throws an error: [vite:css] plugins[i] is not a function that tracks back to a function (Parser.extend) in one of the node chunks in the dist folder. If I patch that file (to check for a function type before attempting to execute it) everything works as expected.
Assuming this is a conflict with PostCSS or similar due to the extra baggage on the end of the import syntax, but not sure where to begin looking as I couldn't find any reference in source.
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 https://github.com/vuejs/core instead.
Describe the bug
I'm attempting to allow import assertions in a vite build using the acorn plugin
acorn-import-assertions
e.g:On build vite throws an error:
[vite:css] plugins[i] is not a function
that tracks back to a function (Parser.extend
) in one of the node chunks in the dist folder. If I patch that file (to check for a function type before attempting to execute it) everything works as expected.Assuming this is a conflict with PostCSS or similar due to the extra baggage on the end of the import syntax, but not sure where to begin looking as I couldn't find any reference in source.
Any help much appreciated!
Reproduction
Minimal reproduction =>
npm run dev
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: