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
Import broken in latest beta #583
Comments
Can you write a test reproducing the issue so that we can guard against regression? |
An import issue is not testable... especially for a dist that has been build. |
@redaxmedia There is a test for ES6 import already here. What's the difference between the way you're using and they way it's being tested? Could it be that we need a test for importing cookies from the root of the package so that it can trigger the need for the "main" field on package.json:
|
Nope, this test does not take care of the dist package released on NPM. Just checkout the beta via npm install and try to import it inside a JavaScript file. I cannot provide more help at this point. |
Also see: #544 (comment) |
@carhartl I opened another issue cause this has nothing todo with the testing setup. Never mix up issues on one task / branch. |
@redaxmedia Aye aye. It looked like it could be the same issue, but you seem to know better. |
I‘m still confused as to how the |
Slightly different advice here: #544 (comment) |
@redaxmedia I've added an example where I've tested (in Nodejs 13.2.0) that this issue is now fixed, but could you also please give it a try... |
Finally, I can confirm that |
Import via 3.0.0-beta.2 is broken as of missing
index.js
file.Current import workaround:
Solution via
node_modules/js-cookie/index.js
:or
Desired import:
The text was updated successfully, but these errors were encountered: