New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Invalid Specifier" when import location has >1 forward slash #876
Comments
Odd, I cannot seem to reproduce myself (Linux, Node 14 & 16) Can you reproduce in a brand-new project? |
Trying to minimally replicate in a fresh repo: https://github.com/bhallstein/wmr-testing
So, I then tried adding both
When otter-editor is prepared for publishing to npm, it is simply transpiled with babel — var _reactQuill = _interopRequireDefault(require("react-quill")); Happy to update the original issue if we can clarify further. |
Any progress? I met the same problem when using @babel/traverse |
Today I tried to switch from parcel to wmr as the runtime for our medium-sized preact project, which uses @heroicons/react as an icon library.
Describe the bug
With @heroicons/react, to import an icon you write, for example:
import {XIcon} from '@heroicons/react/outline'
. (Or for solid icons,@heroicons/react/solid
.)When wmr is started and the app accessed through the web browser, wmr then emits an error message, "Invalid specifier" for the import location
'@heroicons/react/outline'
.To Reproduce
Steps to reproduce the behavior:
npm i -S @heroicons/react
import {XIcon} from '@heroicons/react/outline'
wmr
and loadlocalhost:8080
in a browser.Expected behavior
Bug occurs with:
wmr
orwmr start
(development)I haven't tested on
build
/serve
.Desktop:
Additional context
WMR is amazing, I'm really looking forward to using it ❤️
The text was updated successfully, but these errors were encountered: