We've moved discussions to Discord

Unable to install vue via webpacker:install:vue

Ivor Padilla
Solved:

They removed these scripts in Webpacker 6, you need to install manually.

On a brand new JSP installation:

I'm unable to find the tasks to use Vue, Svelte, etc. Am I missing something?

I did ran `rails webpacker:install` but when running `rails webpacker:install:vue` I get:


Don't know how to build task 'webpack' (See the list of available tasks with `rails --tasks`)
Did you mean?  webpacker
/Users/ivor/Developer/projects/rails/project/bin/rails:9:in `<top (required)>'
/Users/ivor/Developer/projects/rails/project/bin/spring:15:in `<top (required)>'
(See full trace by running task with --trace)

Available Webpacker tasks are:
webpacker:info                Provides information on Webpacker's environment
webpacker:install             Installs and setup webpack with Yarn
webpacker:compile             Compiles webpack bundles based on environment
webpacker:clean               Remove old compiled webpacks
webpacker:clobber             Removes the webpack compiled output directory
webpacker:check_node          Verifies if Node.js is installed
webpacker:check_yarn          Verifies if Yarn is installed
webpacker:check_binstubs      Verifies that bin/webpack is present
webpacker:binstubs            Installs Webpacker binstubs in this application
webpacker:verify_install      Verifies if Webpacker is installed
webpacker:yarn_install        Support for older Rails versions. Install all JavaScript dependencies as specified via Yarn
Chris Oliver
Webpacker 6 no longer includes these installers. The Webpacker readme has instructions on how to add the vue-loader instead. 👍

I think they want to get away from this stuff so they don't have to continually maintain it as things constantly change.
Notifications
You’re not receiving notifications from this thread.