React components library requires a dependency to build #3601
Unanswered
davidpn11
asked this question in
Troubleshooting
Replies: 1 comment 1 reply
-
perhaps you need a html file to refer to the entry script file? that is how it works in dev mode. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a very simple component library in a monorepo app, all based on React and TS.
It has the following structure:

When I try to build it using snowpack I get the following error:
No ESM dependencies found! At least one dependency must have an ESM "module" entry point. You can find modern, web-ready packages at https://www.skypack.dev
That is because I have no dependencies on my package. If I add an npm dependency and use it, it builds just fine.
Is there any way to config
snowpack
that would allow me to not use a dependency, keeping the package lean?Snowpack config:
package.json:
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions