-
Notifications
You must be signed in to change notification settings - Fork 16
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
Browser import issue #290
Comments
👋 For the first error: Looks like the node version of For the second error, it looks like other bundlers handle this issue gracefully: |
Hi Andi, I work with Kyle. To explain a bit: yes, we're using @web/dev-server. The server uses a config file that works similarly to rollup's own config file and allows you to pass options into the same In our config we simply have I say all this to say, it's probably-definitely something on our end, but our hands are tied. |
👋
When I try using Besides adjusting the imports of |
If you have an example of a package with node & browser version that works with your, please send it my way. Happy to take a look at their configuration and maybe adjust mine accordingly. |
Andi, I think you are exactly right. We've had issues with other packages with Thank you for putting me on to Because you asked, one package that we have never had any issues with using both in node and in the browser is the Thanks again for a quick response! As far as I'm concerned, you've helped us more than enough already! We'll keep an eye on the issues list over on web-dev-serve and try to figure out what's up. |
If you come up with a change that makes
At some point I want to remove some dependencies from this package and only use |
Hey @tannerstern, I released a new (major) version of |
Andi, I got SO CLOSE to having this working with a local install (we are currently using the CDN+esm version). Your Both of these gave
I suspect the reason I continue to have issues here is because we still have lingering issues preventing us from setting our Node resolve options to Thanks anyway though! I got much further this time with your changes. |
I'm trying to use
MDBReader
in the browser for a project that I'm serving with Web Dev Server, but keep hitting the following error:I've also tried directly referencing the built browser version
but this yields a different error in
lib/browser/environment/index.js
wherebrowserifyAES
fails to import because it doesn't provide a default export.Am I importing something incorrectly in either scenario?
The text was updated successfully, but these errors were encountered: