You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing the following warning with Chai 4.0.0 that I didn't have with Chai 3.5.0
WARNING in ./~/chai/chai.js
Critical dependencies:
1:477-484 This seems to be a pre-built javascript file. Though this is possible, it's not recommended. Try to require the original source to get better results.
@ ./~/chai/chai.js 1:477-484
The use case is browser based testing from within the "storybook-addon-specifications" module.
I suspect that the problem is the new browser field in the "package.json" file. Webpack is now trying to load the "chai.js" webpacked file instead of original source "index.js". Perhaps a solution is to add a "webpack": "index.js" line to package.json.
I'm no webpack expert though. I would defer to someone wiser in the ways of Webpack than myself.
The text was updated successfully, but these errors were encountered:
Let's see if any of the other maintainers have any good ideas on how to handle this, but for now I think we should mitigate this problem by following your suggestion.
I'm seeing the following warning with Chai 4.0.0 that I didn't have with Chai 3.5.0
The use case is browser based testing from within the "storybook-addon-specifications" module.
I suspect that the problem is the new
browser
field in the "package.json" file. Webpack is now trying to load the "chai.js" webpacked file instead of original source "index.js". Perhaps a solution is to add a"webpack": "index.js"
line to package.json.I'm no webpack expert though. I would defer to someone wiser in the ways of Webpack than myself.
The text was updated successfully, but these errors were encountered: