Skip to content
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

Typescript support #23

Closed
joshua1 opened this issue Jan 22, 2018 · 34 comments
Closed

Typescript support #23

joshua1 opened this issue Jan 22, 2018 · 34 comments

Comments

@joshua1
Copy link

joshua1 commented Jan 22, 2018

It would be nice to have typescript/tslint support as part of the configuration

This feature request is available on Nuxt.js community (#c16)
@pkej
Copy link

pkej commented Feb 15, 2018

I suggest a refinement of tyoescript-template containing vuex-typex and cleaned up dependencies.

@pkej
Copy link

pkej commented Feb 15, 2018

Hmm. I didn't read it all and misunderstood the enhancement request.

@AndrewBogdanovTSS
Copy link

It would be great to incorporate existing nuxt-community/typescript-template inside create-nuxt-app
As far as I understand the related issue was already logged by @pkej

@atinux
Copy link
Member

atinux commented Mar 26, 2018

Indeed, we need to finish @nuxtjs/typescript so we will able to add it inside create-nuxt-app.

@atinux
Copy link
Member

atinux commented Apr 12, 2018

cc @breakingrobot

@breakingrobot
Copy link

@joshua1 @AndrewBogdanovTSS @atinux I will be working on an enhanced Typescript starter as soon as possible, there are few problems with decorators that need to be fixed too 👍

@karellm
Copy link

karellm commented Aug 2, 2018

I'm currently exploring Nuxt for a new project and was wondering if there was any update on TS support? Thanks!

@AndrewBogdanovTSS
Copy link

@karellm not a lot, we still have a long way to go with TS. In case you plan to build full-featured heavy SPA - TS currently is not the way to go since you will face quite a lot of bugs in Nuxt dependencies, most of which weren't even build with TS in mind, but again, that's just my experience.

@karellm
Copy link

karellm commented Aug 3, 2018

@AndrewBogdanovTSS Thanks for sharing. I wanted to give TS a spin but I guess it will wait.

@qidaneix
Copy link

qidaneix commented Sep 8, 2018

Does the create-nuxt-app support typescript now?

@sweetim
Copy link

sweetim commented Sep 22, 2018

can use this package (https://github.com/wagerfield/nuxt-typescript) to configure the typescript, but may I know any support for typescript with express and nuxt?

@sascha245
Copy link
Contributor

I am currently working on adding features choice like in vue cli 3 (typescript, pwa, tests etc...). Though it will probably take some time to do them all, typescript will probably be done in a few days.

Please tell me if someone else is already working on it.

@demouserforsale
Copy link

@sascha245 thanks for the work! I was wondering how to implement typescript with nuxt+express server (not a middleware), but only on server side. I am talking about something like this (https://github.com/pronist/nuxt-express-typescript-template), but since I am very bad with build tools like webpack and backpack, I am struggling to figure it out. (the example below looks outdated and I am hesitant to use this one). Maybe you will look into the issue and add the feature like this? I mean typescript support for the custom server. Thanks in advance!

@francoism90
Copy link

francoism90 commented Jan 24, 2019

Status update?

@JohnatanNorman Did you found any solution?

@TheAlexLichter
Copy link
Member

TheAlexLichter commented Jan 24, 2019

@francoism90 General TS support is coming really soon.
After that we can talk about a CNA integration

PS: PR's are appreciated!

@francoism90
Copy link

francoism90 commented Jan 24, 2019

@manniL Is it already possible to test and report bugs, if any? I'm still facing issues with serverMiddleware where imports doesn't seem to work, hope this will work with the new TS support.

Thanks for the hard work!

@TheAlexLichter
Copy link
Member

@francoism90 It is, yes. Feel free to join our Discord for easier feedback. Besides that, you can submit issues as usual.
A TS example is available at https://github.com/nuxt-community/hackernews-nuxt-ts/

@sweetim
Copy link

sweetim commented Jan 25, 2019

I wrote this sample that uses typescript for express and nuxt
https://gitlab.com/hosweetim/timx-site

@christophwolff
Copy link

@riddla and i created a typescript template, too. Enjoy!
https://github.com/christophwolff/nuxt-typescript-template

@robsontenorio
Copy link

robsontenorio commented Feb 9, 2019

Will typescript support land on create-nuxt-app?

@Al-un
Copy link

Al-un commented Feb 15, 2019

First of all, Kudos to Nuxt team for Nuxt 2.4.0 and TypeScript integration! Being new to Nuxt, I tried a Nuxt+TypeScript project thanks for Hackernews-nuxt-ts and this helloworld

Nightmare started with testing, especially with Babel 6 -> 7 / Jest 23.6.0 -> 24.1.0 especially with [ts] cannot find module ... [2307] in testing files, please check this issue.


  • Question 1: Will the create-nuxt-app with TypeScript starts at Jest 24+?
  • Question 2: Apart from adding TypeScript specific dependencies, the only point would be fixing the point mentioned above by updating @nuxt/typescript/tsconfig and adding a ts-shim.d.ts. But I don't know where to comment it 😆
  • Question 3: How about migration of existing projects? I guess it should be handled in nuxt/docs?

@ux-engineer
Copy link

Should use ESLint instead of TSLint: https://cmty.app/nuxt/nuxt.js/issues/c8742

@riddla
Copy link

riddla commented Feb 27, 2019

@envision, I second that. We just switched from TSLint to ESLint within our nuxt project. The current ESLint config can be found over at https://gist.github.com/riddla/6e892375ff373cdc457bbf93da39ef58.

@robsontenorio
Copy link

Nuxt 2.5 is out with typescript improvements! Is it time to get typescript support ?

@garrensweet
Copy link

It's been 2 months without an update here. When can we realistically expect TS as an option with create-nuxt-app?

@Thihup
Copy link

Thihup commented Jul 17, 2019

Ping

@TheAlexLichter
Copy link
Member

I can't promise anything, but now that nuxt/nuxt#5858 is through, we could tackle that issue 👍

@SyloRei
Copy link

SyloRei commented Aug 20, 2019

Nuxt 2.9 is out. I think the community needs this typescript option asap. Let's do it! 🎉

@hi2u
Copy link

hi2u commented Aug 22, 2019

FYI for those interested, Next.js now supports TypeScript by default, no plugins or config needed:

@coolsam726
Copy link

I just stumbled upon nuxt-app-ts. My problem is solved. Just try:

yarn create nuxt-app-ts you_app_name

or

npx create-nuxt-app-ts <my-project>

or

npm init nuxt-app-ts <my-project>

@udanpe
Copy link

udanpe commented Sep 18, 2019

@coolsam726 unofficial library, with old version of nuxt (last updated 5 months ago) it's not the solution.

  "dependencies": {
    "nuxt": "^2.6.2",
    "vuetify": "^1.5.2"
  },

@christophwolff
Copy link

Have you seen https://typescript.nuxtjs.org/ ?

@eseiker
Copy link

eseiker commented Sep 19, 2019

another pr being worked XD tracking #328 might be helpful

@kevinmarrec
Copy link
Contributor

Implemented in #328

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

No branches or pull requests