-
Notifications
You must be signed in to change notification settings - Fork 1.5k
trouble with erb-loader, is not working with .vue.erb files #498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@andradedev Could you please share your |
@andradedev simply change # config/loaders/vue.js
module.exports = {
test: /\.vue(\.erb)?$/,
...
} that made it work for me |
module.exports = {
test: /\.vue(\.erb)?$/,
enforce: 'pre',
exclude: /node_modules/,
use: 'rails-erb-loader',
options: {
runner: 'bin/rails runner'
}
} |
@gauravtiwari I think |
thanks for yours quick reply, here is the HomeForm.vue.erb file
|
@gauravtiwari and @doits thie didnt work for me :(
by the way mi packages versions are:
|
@andradedev I did exactly this yesterday after a fresh install of webpacker I added a PR (#500) to make that change default. |
im using rails thanks! |
hey its working, but the compiler does not accept any helper from Rails, ej. form_for, asset_path, image_tag etc etc. Is this a bug o an error from the runner? |
@andradedev No those helpers aren't supported - just asset helpers. |
Documentation: https://github.com/rails/webpacker#using-helpers |
oo perfect, thanks a lot for your help! |
Hi
im working with vue and everything going great, but at the moment to compile with erb, the console shows me a error:
please, hope can help me!
thanks
The text was updated successfully, but these errors were encountered: