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

@rails/webpacker version #1500

Closed
Baozi2 opened this issue May 14, 2018 · 6 comments
Closed

@rails/webpacker version #1500

Baozi2 opened this issue May 14, 2018 · 6 comments

Comments

@Baozi2
Copy link

Baozi2 commented May 14, 2018

I use gem 'webpacker', '>= 4.0.x'. But in my package.json the @rails/webpacker is ^3.5.3.
In the package.json. I think

"webpack": "^3.11.0",
 "webpack-manifest-plugin": "^1.3.2"

should in devDependencies, dependencies

@ytbryan
Copy link
Contributor

ytbryan commented May 14, 2018

I use gem 'webpacker', '>= 4.0.x'. But in my package.json the @rails/webpacker is ^3.5.3.

Have you looked at https://github.com/rails/webpacker#upgrading? In particular "yarn upgrade ..."

should in devDependencies, dependencies

Have you looked at #1208

@humphreybc
Copy link

I think running bundle exec rails webpacker:install overwrites the 4.0.x pre-release.

@Footpad
Copy link

Footpad commented Aug 5, 2018

After commenting out this:

say "Installing all JavaScript dependencies"
run "yarn add @rails/webpacker"

I was able to get the 4.0.x version of webpacker installed with these:

# Gemfile
gem 'webpacker', '>= 4.0.x'

yarn add @rails/webpacker@4.0.0-pre.2
bundle exec rake webpacker:install

If my understanding is correct, using the specific version in the install task should fix the issue.

@Lasvad
Copy link

Lasvad commented Aug 23, 2018

would upgrading the Webpacker v4 also bring in webpack v4?

@gauravtiwari
Copy link
Member

@Lasvad Yes :)

@gauravtiwari
Copy link
Member

Made a pre-release (with babel 7 support):

yarn add @rails/webpacker@next
bundle update webpacker

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

6 participants