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
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
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