Closed efoken closed 2 years ago
Hi, there are 2 probable situations that can generate this error:
Is it possible for you to share the repository with me?
Ah yes, I really have 2 versions of Atomico installed, that was the error, thanks for the tip 👍
But you know why I have 2 versions installed? This is because @atomico/hooks
has a hard dependency on atomico@latest
. So as soon as I use a fixed Atomico version in my project, which is not the latest version (and I do), there will be 2 versions installed. The best solution is when you define Atomico as a peerDependency instead hard dependency in the @atomico/hooks
package 🙏
EDIT: I cannot share the repo with you, because it's an internal project for a customer. I tried to setup a runnable example but then saw the error with the 2 versions.
Good idea in the next version of the libraries that share a link with Atomico I will define this as peerDependencie
It is no longer necessary to share the repo with me, now I understand where the error comes from, thank you for telling me this
Getting those wierd errors all the time, when trying to register the WebComponent:
Getting this with every component, no matter how simple it is. I'm using Atomico inside React Storybook, but also tried setting up a simple Webpack 5 Devserver, getting the same errors all the time...
You ever seen this?