Skip to content

Cannot start creating default project. #441

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

Closed
StringKe opened this issue Sep 3, 2020 · 7 comments
Closed

Cannot start creating default project. #441

StringKe opened this issue Sep 3, 2020 · 7 comments

Comments

@StringKe
Copy link

StringKe commented Sep 3, 2020

I use yarn create nuxt-app to create a default typescript nuxt project, I haven’t modified any code, it can’t start

https://asciinema.org/a/8iWFLgPTDYaaHC8biFhqneNI2

@StringKe
Copy link
Author

StringKe commented Sep 3, 2020

If I switch @nuxt/typescript-build version is 2.0.0 and @nuxt/typescript-runtime version is 1.0.0, project start success ,no errors

@kevinmarrec
Copy link
Contributor

@StringKe Alright, sounds to be since upgrade to TypeScript 4.

You need to upgrade @nuxt/typescript-runtime to 2.0 to fix it, cause if you keep 1.0.0, you'll have two versions of TypeScript installed which cause your issue.

I'm gonna fix create-nuxt-app so it doesn't happen when generating a new Nuxt TypeScript app.

@StringKe
Copy link
Author

StringKe commented Sep 3, 2020

i try this code and @nuxt/typescript-runtime version is 2.0 @nuxt/typescript-build is 2.0.3,find error

<script lang="ts">
import { Component, Vue } from 'vue-property-decorator'

@Component({})
export default class index extends Vue {}
</script>

and

<script lang="ts">
import Vue from 'vue'

export default Vue.extend({})
</script>

image

@kevinmarrec
Copy link
Contributor

@StringKe Could you provide a repository with the issue ? Assuming the rror you seem to have something wrong in the styles of your Vue component => type=style&index=0&lang=less.

Check your style sections

@StringKe
Copy link
Author

StringKe commented Sep 3, 2020

@kevinmarrec It was my mistake, I forgot to reinstall less. I updated the version again, everything works fine, thank you

@kevinmarrec
Copy link
Contributor

Good :) Will close this issue when create-nuxt-app will be released with the dependencies fix.

@StringKe StringKe closed this as completed Sep 3, 2020
@emjimadhu
Copy link

i am really sorry for commenting in closed issue @kevinmarrec I am having almost similar error.

Screenshot from 2020-09-17 21-22-43

i created a fresh project. and my @nuxt/typescript-runtime version is 2.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants