Closed shatodj closed 4 years ago
I got the same with simple js app.
It decided whether to use es5 or es6 by checking if this === window
, then check if it is es6 with process.env.ES6 === 'true'
. Both those checks fail so it assumes it is a node app and does that:
var fs_1 = require('fs');
var path_1 = require('path');
This breaks the app. I feel like the way it is exported should be changed, maybe using package.json
fields like module
etc.
As we had this (and other) issues with that library at Wikia, so we created our own, it is heavily inspired by this one but assumes different paradigm, and is built with web in mind: https://github.com/Wikia/dependency-injection-js
Fixed in version 3
I'm not able to build my react-native app using this awesome module. I have this error inside metro bundler:
my packages: