Skip to content
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

react-transform-hmr is referenced in lib files #93

Closed
n1k0 opened this issue Mar 24, 2016 · 0 comments
Closed

react-transform-hmr is referenced in lib files #93

n1k0 opened this issue Mar 24, 2016 · 0 comments
Labels

Comments

@n1k0
Copy link
Collaborator

n1k0 commented Mar 24, 2016

This prevents dependant packages to use the lib with an error like this:

> [email protected] test /home/niko/work/kinto-admin
> NODE_ENV=test mocha --compilers js:babel/register --recursive --require ./test/setup-jsdom.js $(find test -name '*_test.js')

/home/niko/work/kinto-admin/node_modules/react-transform-hmr/lib/index.js:51
    throw new Error('locals[0] does not appear to be a `module` object with Hot Module ' + 'replacement API enabled. You should disable react-transform-hmr in ' + 'production by using `env` section in Babel configuration. See the ' + 'example in README: https://github.com/gaearon/react-transform-hmr');
    ^

Error: locals[0] does not appear to be a `module` object with Hot Module replacement API enabled. You should disable react-transform-hmr in production by using `env` section in Babel configuration. See the example in README: https://github.com/gaearon/react-transform-hmr
    at proxyReactComponents (/home/niko/work/kinto-admin/node_modules/react-transform-hmr/lib/index.js:51:11)
    at Object.<anonymous> (/home/niko/work/kinto-admin/node_modules/react-jsonschema-form/lib/components/fields/ArrayField.js:39:59)
    at Module._compile (module.js:435:26)
    at Module._extensions..js (module.js:442:10)
    at Object.require.extensions.(anonymous function) [as .js] (/home/niko/work/kinto-admin/node_modules/babel/node_modules/babel-core/lib/api/register/node.js:214:7)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/home/niko/work/kinto-admin/node_modules/react-jsonschema-form/lib/components/fields/SchemaField.js:13:19)
    at Module._compile (module.js:435:26)
    at Module._extensions..js (module.js:442:10)
    at Object.require.extensions.(anonymous function) [as .js] (/home/niko/work/kinto-admin/node_modules/babel/node_modules/babel-core/lib/api/register/node.js:214:7)

Sample references in published lib files:

@n1k0 n1k0 added the bug label Mar 24, 2016
@n1k0 n1k0 changed the title react-transform-hmr is referenced in dist files react-transform-hmr is referenced in lib files Mar 24, 2016
@n1k0 n1k0 closed this as completed in 1055568 Mar 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant