Closed JakubKoralewski closed 3 years ago
@JakubKoralewski i encountered almost same to you, but solved with;
buildModules: ['@nuxt/typescript-build']
in your nuxt.config
nuxt-ts
, not nuxt
( with @nuxt/typescript-runtime
)
I'd happy if it works.
same error , @aewshyae it not works for me @nuxt/typescript-build and @nuxt/typescript-runtime are both latest version. Just run nuxt-ts build have this error.
:+1: for @aewshyae suggestion. I successfully upgraded in this PR: https://github.com/Al-un/learn-nuxt-ts/pull/4 (maybe the relevant commit would be https://github.com/Al-un/learn-nuxt-ts/pull/4/commits/742b55499726c15492372dbfa3fd620bfd9de89b and https://github.com/Al-un/learn-nuxt-ts/pull/4/commits/7ba3f1a4ef36d25e6029275767e8cf0912daa456)
Make sure:
@nuxt/typescript-build
in your devDependencies and @nuxt/typescript-runtime
in your dependencies@nuxt/vue-app
must be @nuxt/types
nuxt-ts
instead of nuxt
in the package.json scripts
I've come back to a project after a while and it is not working suddenly. I've also got some SCSS undefined variable errors, so it's highly likely something is incorrect on my side, but I have no idea what though. I'd appreciate any help.
package.json
:tsconfig.json
nuxt.config.ts
is kinda log and hacked together so I can put it up in a gist or the parts that are needed.