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 got this error when using json-loader + express:
[webpack-isomorphic-tools] [error] asset not found: ./~/statuses/codes.json
/app/node_modules/statuses/index.js:7
status.codes = Object.keys(codes).map(function (code) {
^
TypeError: Cannot convert undefined or null to object
at Function.keys (native)
at Object.<anonymous> (/app/node_modules/statuses/index.js:7:23)
at Module._compile (module.js:435:26)
at Module._extensions..js (module.js:442:10)
at Object.require.extensions.(anonymous function) [as .js] (/app/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> (/app/node_modules/http-errors/index.js:2:16)
It seems that webpack-isomorphic-tools new require is trying to handle resources that are only used server-side (like express).
Here is the webpack-isomorphic-tools config that I use:
Hi,
I got this error when using
json-loader
+express
:It seems that webpack-isomorphic-tools new
require
is trying to handle resources that are only used server-side (likeexpress
).Here is the webpack-isomorphic-tools config that I use:
Thanks.
The text was updated successfully, but these errors were encountered: