-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[🐞] Cannot use node.js module inside Endpoint because of rollup compilation error #6047
Comments
Looks like fpvdrone is a binary module and you'll need to add it to your externals as well. BTW there's |
@wmertens i dont know where you see this / get the idea that "fpvdrone" is even a package? |
@wmertens anyway, i tried the plugin you mentioned and now i get another error :D
when i configure the plugin to not exclude node_modules, i am back to the original error
this is the config i used:
i am using @fontsource packages for font managing, seems like the plugin does not like that... |
I shouldn't answer from my phone before coffee ;-) I saw it complain about the unknown character and I just assumed it was a binary dep but that wouldn't make sense. You can just put To figure out which file is problematic, try some console logging debugging like rollup/rollup#1215 (comment) |
@jappyjan Did you solve this error? |
I recommend replacing |
Which component is affected?
Qwik Rollup / Vite plugin
Describe the bug
When i import the Resvg module into my Endpoint,
I get the error
therefore i added all necessary native node modules like fs, path, etc. to the ssr.external options of rollup
which fixed these errors, but now i get this error:
this is my vite.config.ts
and this is the minimal endpoint definition that triggers the error:
Reproduction
.
Steps to reproduce
No response
System Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: