You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
It took me several hours to deploy the changes to staging because it was so hard to just get my changes to be accepted by npm.
but it didn't work and it was confusing.
So I did the opposite of your adivce, ran a build and moved everything of dist into the project root (deleting the orignal root),
then I used that as a dependency on a branch.
This caused it to typecheck with my changes.
But for whatever reason it couldn't find itself:
Could not resolve "./html5-qrcode" from "node_modules/html5-qrcode/esm/index.js"
file: /home/jappie/projects/xxxxxxx/node_modules/html5-qrcode/esm/index.js
error during build:
RollupError: Could not resolve "./html5-qrcode" from "node_modules/html5-qrcode/esm/index.js"
at error (file:///home/jappie/projects/xxxxxxxxx/node_modules/rollup/dist/es/shared/node-entry.js:2287:30)
at ModuleLoader.handleInvalidResolvedId (file:///home/jappie/projects/xxxxxxxxxx/node_modules/rollup/dist/es/shared/node-entry.js:24855:24)
at file:///home/jappie/projects/xxxxxxxxxxx/node_modules/rollup/dist/es/shared/node-entry.js:24817:26
I had no clue how to solve this,
after some trial and error I decided to make the build as simple as possible,
and maybe hone in on the problem?
So I deleted the esnext and module entrypoints from package.json: jappeace@2794d94
Which fixed the problem.
I've no clue why.
Describe the solution you'd like
Make it so that a direct dependency just works, for example:
Is your feature request related to a problem? Please describe.
It took me several hours to deploy the changes to staging because it was so hard to just get my changes to be accepted by npm.
I added my depenedency like this:
but it didn't work and it was confusing.
So I did the opposite of your adivce, ran a build and moved everything of dist into the project root (deleting the orignal root),
then I used that as a dependency on a branch.
This caused it to typecheck with my changes.
But for whatever reason it couldn't find itself:
I had no clue how to solve this,
after some trial and error I decided to make the build as simple as possible,
and maybe hone in on the problem?
So I deleted the esnext and module entrypoints from package.json:
jappeace@2794d94
Which fixed the problem.
I've no clue why.
Describe the solution you'd like
Make it so that a direct dependency just works, for example:
Describe alternatives you've considered
Using another library to be honest. But that seemed more risky.
Additional context
We're a small startup project.
The text was updated successfully, but these errors were encountered: