You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just spent a considerable amount of time debugging why my application wasn't working once I tried to add .erb components to my webpacker setup
since I'm not that knowledgeable about webpack, I thought this was a loader issue, but it turns out it worked after changing the imports to have an explicit extension:
`import Search from './search.jsx.erb'; // this was not working without the extensions
After some more fiddling, I found that adding .jsx.erb to the paths.yml file, this is no longer necessary
So my question is, should we add things like .jsx.erb and .js.erb to that file by default? Did I do something wrong, and should those not be necessary?
The text was updated successfully, but these errors were encountered:
I just spent a considerable amount of time debugging why my application wasn't working once I tried to add
.erb
components to my webpacker setupsince I'm not that knowledgeable about webpack, I thought this was a loader issue, but it turns out it worked after changing the imports to have an explicit extension:
`import Search from './search.jsx.erb'; // this was not working without the extensions
After some more fiddling, I found that adding
.jsx.erb
to thepaths.yml
file, this is no longer necessarySo my question is, should we add things like
.jsx.erb
and.js.erb
to that file by default? Did I do something wrong, and should those not be necessary?The text was updated successfully, but these errors were encountered: