Webpacker: Can't install svelte

Created on 4 Aug 2019  路  5Comments  路  Source: rails/webpacker

When I try to install svelte bundle exec rails webpacker:install:svelte then I catch follow error:

rails aborted!
Don't know how to build task 'webpacker:install:svelte' (See the list of available tasks with `rails --tasks`)
Did you mean?  webpacker:install:elm
               webpacker:install:vue
               webpacker:install:react
               webpacker:install:erb
               webpacker:install:coffee
               webpacker:install:stimulus
               webpacker:install:angular

Most helpful comment

@magiknono it's because of the new version not released yet. I installed the gem from git master and it works for me

All 5 comments

i tested with rails 5.2 and rails 6.0.0.rc2 with webpacker 4.0.7 but it did not works and i had the same error.
And with rails --tasks in terminal, i don't see entry that references webpacker:install:svelte

Here is my repo to make it works manually sveltewithwebpack

I only followed steps of the PR #2134 by @victorhazbun and this commit

@magiknono it's because of the new version not released yet. I installed the gem from git master and it works for me

As rails 6 were release and rails are using webpacker by default, So I think we should also release webapacker. So all the latest changes will reflect in the new version.

Here is a sample app, Svelte and Rails 5 https://github.com/victorhazbun/fish-hub

I close this issue because I think that it's will be fixed when published the next version

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ytbryan picture ytbryan  路  3Comments

iChip picture iChip  路  3Comments

FrankFang picture FrankFang  路  3Comments

Eearslya picture Eearslya  路  3Comments

ankitrg picture ankitrg  路  3Comments