Closed acidjazz closed 4 years ago
Any update on this? Thx
That works for me, show me you webpack config.
@tlongzou I use the nuxt.js framework, so i don't really have my own custom config. try a quick setup of it to see
vue init nuxt-community/starter-template <project-name>
@acidjazz @shreeve
nuxt
template project is enable eslint
by default in nuxt.config.js:23
you can remove or commented out that.
Simply disabling eslint
as many suggested didn't work for me to make nuxt
recognise coffeescript in .vue files. What helped is also adding the following to nuxt.config.js
:
build: {
extend(config, ctx) {
config.module.rules.push({
test: /\.(coffee)$/,
use: [{ loader: 'coffee-loader' }]
})
}
}
It seems coffee-loader
isn't being recognised automatically by nuxt
.
@kyrsquir Exactly, you have to extend your webpack config
by using build.extend
.
This is also shown in our official coffescript example.
Closing due to inactivity. Please test with latest version and feel free to reopen if still regressions. Thanks!
I think it is out of scope coffee-loader
, you need open issue in vue-cli
Any chance we can get support for .vue files?
my error: