Additional Details
yarn dev after install success
i hope its run success!
脳 Server Compiled with some errors in 307.47ms
脳 Client Compiled with some errors in 549.19ms
脳 Server Compiled with some errors in 307.47ms
ERROR Failed to compile with 1 errors
This relative module was not found:
* ./index.vue?vue&type=script&lang=ts& in ./pages/index.vue
but i am remove "lang=ts" from "
I have a same problem too. A new project with Typescript failed to compile after creating the project.
ERROR Failed to compile with 1 errors friendly-errors 17:03:01
This relative module was not found: friendly-errors 17:03:01
friendly-errors 17:03:01
* ./index.vue?vue&type=script&lang=ts& in ./pages/index.vue friendly-errors 17:03:01
Issues checking in progress... 17:03:01
No issues found. 17:03:01
cc @kevinmarrec
Just install @nuxt/typescript-runtime like so:
yarn add @nuxt/typescript-runtime --dev
Just install @nuxt/typescript-runtime like so:
yarn add @nuxt/typescript-runtime --dev
@nuxt/typescript-runtime is installed in dependencies when i am install nuxt
please look at the one above package.json
Just install @nuxt/typescript-runtime like so:
yarn add @nuxt/typescript-runtime --dev@nuxt/typescript-runtime is installed in dependencies when i am install nuxt
please look at the one above package.json
Ah, sry, my bad. But it seems like outdated for me, try to upgrade it to "@nuxt/typescript-runtime": "^2.0.0",
Just install @nuxt/typescript-runtime like so:
yarn add @nuxt/typescript-runtime --dev@nuxt/typescript-runtime is installed in dependencies when i am install nuxt
please look at the one above package.jsonAh, sry, my bad. But it seems like outdated for me, try to upgrade it to "@nuxt/typescript-runtime": "^2.0.0",
i am installed it according to the offical document the day before yesterday,
i think that its a bug of offical
but i am say thank to you, thank you reply to me!
i am installed it according to the offical document the day before yesterday,
i think that its a bug of offical
but i am say thank to you, thank you reply to me!
Agree, I've got same troubles - after setup according to the official doc, there was not typescript-runtime package at all, I've got errors like @sontd-0882 have
./index.vue?vue&type=script&lang=ts& in ./pages/index.vue friendly-errors 17:03:01
Issues checking in progress... 17:03:01
No issues found. 17:03:01
which is disappeared after I installed latest typescript-runtime
So my package.json now is like:
"devDependencies": {
"@nuxt/types": "^2.14.0",
"@nuxt/typescript-build": "^2.0.2",
"@nuxt/typescript-runtime": "^2.0.0",
"@nuxtjs/eslint-config": "^3.1.0",
"@nuxtjs/eslint-config-typescript": "^3.0.0",
"@nuxtjs/eslint-module": "^2.0.0",
...
But definitely something is wrong here, thanks for opening this issue. Will wait for the official reply
i am installed it according to the offical document the day before yesterday,
i think that its a bug of offical
but i am say thank to you, thank you reply to me!Agree, I've got same troubles - after setup according to the official doc, there was not typescript-runtime package at all, I've got errors like @sontd-0882 have
./index.vue?vue&type=script&lang=ts& in ./pages/index.vue friendly-errors 17:03:01
Issues checking in progress... 17:03:01
No issues found. 17:03:01which is disappeared after I installed latest typescript-runtime
So my package.json now is like:
"devDependencies": {
"@nuxt/types": "^2.14.0",
"@nuxt/typescript-build": "^2.0.2",
"@nuxt/typescript-runtime": "^2.0.0",
"@nuxtjs/eslint-config": "^3.1.0",
"@nuxtjs/eslint-config-typescript": "^3.0.0",
"@nuxtjs/eslint-module": "^2.0.0",
...But definitely something is wrong here, thanks for opening this issue. Will wait for the official reply
en, waiting for official reply
@manniL @kevinmarrec
Yes, this is an issue with the wrong version of @nuxt/typescript-runtime being required. It depends on TypeScript 3.9, but the latest @nuxt/typescript-build depends on TypeScript 4.0.
The fix has already been merged but not yet released: https://github.com/nuxt/create-nuxt-app/pull/599