Nigel Sheridan-Smith

Results 36 comments of Nigel Sheridan-Smith

Ok I can confirm it works with these versions: * Ruby 2.7.2 (for `svelte-rails-demo` app - which needs `mimemagic` 0.3.5) * Rails 6 * Webpacker 4.2.2 * Node 14 There...

This `package.json` works with my project ``` { "name": "svelte-my-demo", "private": true, "scripts": { "start": "webpack-cli serve --mode development" }, "dependencies": { "@rails/actioncable": "^6.1.4-1", "@rails/activestorage": "^6.1.4-1", "@rails/ujs": "^6.1.4-1", "@rails/webpacker": "^4.3.0",...

This error seems to come about from upgrading `svelte-loader` from `2.13.6` to `3.1.2`

It **does** work with `Rails 7.0.0 alpha 2` and `Ruby 3.0.0` as long as `svelte-loader` stays on `2.13.6` (and below `3.0.0`). Here's another `package.json`: ``` { "name": "svelte-my-demo", "private": true,...

One caveat is the styling is broken in `prerender: true` mode... You can set `prerender: false` to fix this as a workaround (non-SSR): `` Probably related to the WebPack version......

To get around issues with autoloading I ended up doing this instead of using `stub_const`: ``` after(:each) do Base::Class.send(:remove_const, 'DISPATCH_STRATEGY') Base::Class.const_set('DISPATCH_STRATEGY', :original_value) end %i[a_value another_value original_value].each do it "should work...