Open iMagdy opened 3 years ago
Also hitting this issue with using @snowpack/web-test-runner-plugin
and Google's firebase
on import 'firebase/compat/firestore'
@iMagdy have you found a workaround for this by chance? This has been a blocker for me to get web-test-runner working.
Testing in snowpack has proven to be very difficult, haven't had luck w/ jest either.
Bug Report Quick Checklist
Describe the bug
Using any node module that makes use of node's subpath folder mappings (regardless whether the deprecated syntax or the new one) will throw an error:
Example for map (node's deprecated):
Example for map (new):
To solve this issue, this node module must use absolute file path in the imports instead of folder mappings.
To Reproduce
exports
map, then try to import anydirective
, for example dpimport { cssMap } from 'lit/directives/css-map.js'
Expected behavior
Should parse folder mappings correctly with both deprecated and new syntax.