npm run dev - works
npm run build - fails
I don't need to use canvas on SSR - so if there is any way to make the build work without the canvas package that will be even better.
The error I'm getting:
Error [RollupError]: Unexpected character '' (Note that you need plugins to import files that are not JavaScript)
Demo repo to reproduce problem - https://github.com/gmadar/solid-start-failed-build
- I've also tried to use https://github.com/danielgindi/rollup-plugin-natives from https://github.com/Automattic/node-canvas/issues/1504 but that didn't work, maybe I'm using Vite wrong...
[repost of #1069203504490631280 message with better explanation]
🙏
GitHub
Extract native modules (.node files) while creating a rollup bundle and put them in one place - GitHub - danielgindi/rollup-plugin-natives: Extract native modules (.node files) while creating a rol...