-
Hello, I'm trying to add a FlowmapLayer on an existing project which is already using Deck.gl. I'm not an expert in nx + next.js configuration, but I've tried several things, even with next-transpile-modules (although I didn't know what I was doing). I am working with a very simple example:
and I get the error:
Any clue of how can I fix this? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
next-transpile-modules should solve this issue with Next.js. Add this to
|
Beta Was this translation helpful? Give feedback.
-
Hi @ilyabo thanks for the response. I've tried the code as you've indicated and it still don't works. I've tried also with different versions of the library with the same result. Any ideas? Thank you for your time and this great software. |
Beta Was this translation helpful? Give feedback.
-
Could you share your repo? |
Beta Was this translation helpful? Give feedback.
-
I can't because it's a corporate repo. But I'll try to share the relevant parts: next.base.config.js
package.json
In my component I have:
But I've never been able to test if the component works. After your suggestion the error I get is:
Thanks for your help. |
Beta Was this translation helpful? Give feedback.
-
Ah, so now you are getting the error because of |
Beta Was this translation helpful? Give feedback.
-
I'll do. Thanks! |
Beta Was this translation helpful? Give feedback.
next-transpile-modules should solve this issue with Next.js.
Add this to
next.config.js
: