Skip to content
Advertisement

Tag: import

“object is not extensible” while accessed via `import()` function

I’m importing my JavaScript “module” using the “dynamic import()” call: and, this is the script.js file: By running it, Google Chrome complains that the “object is not extensible” while adding whatever: So, what’s wrong and how to work around the issue? Answer module in the then callback on that import() is the module namespace object for the module. That’s an

Why export default doesn’t work in this simple code?

Why when I use export default on index.js module it says: export ‘appReducers’ (imported as ‘appReducers’) was not found in ‘./reducers/index’ (possible exports: default), but when I change it to module.exports the error go away, why is that? At redux.js in index.js in app.js Answer The problem is in redux.js. Instead of You need What you were doing before was

Advertisement