Referencing local packages by bare specifier changes behaviour #3632
Unanswered
Jamesernator
asked this question in
Troubleshooting
Replies: 2 comments
-
+1 For this. I'm experiencing a very similar issue that essentially blocks my usage of snowpack. |
Beta Was this translation helpful? Give feedback.
0 replies
-
For me it's also only working, if the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently one can use
workspaceRoot
to allow for importing files from other directories, this works fairly well when using relative paths but breaks if using local npm dependencies and referencing via bare specifiers.I have an example repository demonstrating the issue.
Essentially this works:
But when having an entry in
package.json
for that package:We cannot do:
as one would expect, instead this throws an error:
Beta Was this translation helpful? Give feedback.
All reactions