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

delete defaultConfig.extensions: Cannot convert undefined or null to object #1272

Closed
doits opened this issue Feb 14, 2018 · 4 comments
Closed

Comments

@doits
Copy link
Contributor

doits commented Feb 14, 2018

I've a custom env called staging. Therefore my webpacker.yml has this entry:

...

production: &production
  ...

staging:
  <<: *production

And I have this symlink:

config/webpack/staging.js --> config/webpack/production.js

Before 3.2.2, everything was fine on staging. Now I get this on compile:

Webpacker is installed 🎉 🍰
Using /var/www/events/demo-a_staging/releases/20180214180938/config/webpacker.yml file for setting up webpack paths
Compiling…
Compilation failed:

/var/www/events/demo-a_staging/shared/node_modules/@rails/webpacker/package/config.js:15
  delete defaultConfig.extensions
  ^

TypeError: Cannot convert undefined or null to object
    at Object.<anonymous> (/var/www/events/demo-a_staging/shared/node_modules/@rails/webpacker/package/config.js:15:3)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)
    at Function.Module._load (module.js:491:3)
    at Module.require (module.js:587:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/var/www/events/demo-a_staging/shared/node_modules/@rails/webpacker/package/rules/babel.js:2:24)
    at Module._compile (module.js:643:30)

On development everything works.

Looks like something broke custom envs? defaultConfig is null?

@doits
Copy link
Contributor Author

doits commented Feb 14, 2018

oops, just saw #1265, you're already working on it 👍

@gauravtiwari
Copy link
Member

Please use 3.3.0

@doits
Copy link
Contributor Author

doits commented Mar 6, 2018

This is still happening for me in 3.3.0

@Systho
Copy link
Contributor

Systho commented Mar 7, 2018

related to #1274

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants