global.webpack_isomorphic_tools creates an error on mocha
See original GitHub issueI’m having trouble with this setup running on mocha even after adding --globals webpack_isomorphic_tools
on my cli
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
self is not defined when running mocha tests in command line ...
import fetch from 'isomorphic-fetch';. The moment I have this line, my mocha tests crash with -- referenceerror: self is not defined -- error....
Read more >Webpack build error - node.js - Stack Overflow
Strange workaround: I zipped my entire node_modules map and transfered it to PC_A and placed it correctly. Now webpack builds just fine. So...
Read more >What does it take to support Node.js ESM? – The Guild
The only workaround to have an isomorphic __dirname or __filename to be used for both "cjs" and "esm" without using build-time tools like ......
Read more >serverless-bundle - npm Package Health Analysis - Snyk
An extension of the serverless-webpack plugin that bundles your ES6 + TypeScript Node.js Lambda functions. For more information about how to use this ......
Read more >Developing isomorphic applications using webpack - Medium
Lets start with the “Hello, World” and build on that example. Our example is a React application. It uses react-dom to render ReactElement...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Without you telling what file exactly are you running with mocha I will be closing this issue
It has something to do with my integration testing and since my controller is required by my main app it was read by mocha.
And oh! DEVELOPMENT is global too it also gets an error