Skip to content
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

No loader is configured for ".node" files: node_modules/canvas/build/Release/canvas.node #2112

Closed
Aarbel opened this issue Sep 7, 2022 · 4 comments

Comments

@Aarbel
Copy link

Aarbel commented Sep 7, 2022

Hi canvas team,
I've got this error in my since around ~24 hours.
How can i fix it ?

Thanks a lot

No loader is configured for ".node" files: node_modules/canvas/build/Release/canvas.node

image

@PoMkaNik
Copy link

Any updates?

@zbjornson
Copy link
Collaborator

I think this is an esbuild thing, see evanw/esbuild#1051 for recommendations.

@Aarbel
Copy link
Author

Aarbel commented Apr 19, 2023

problem was coming from native dependencies not well copied on lambdas and node modules.

I put an internal commit fix link here for maintance: https://github.com/Clovis-team/clovis-app/pull/2743/commits/5870451d94d8b1b8a6e981bbc37e211e26430a0c

mkdir -p dist/apolo/node_modules && cp -R node_modules/canvas dist/canvas/node_modules

@Aarbel
Copy link
Author

Aarbel commented Apr 19, 2023

Indeed the fix was with cdk

using --loader:.node=file solved but was hard to configurate

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants