Closed saimonnozaki closed 3 weeks ago
Thank you!
It looks like setting @nuxtjs/typescript-build
as a module
is not recommended
https://typescript.nuxtjs.org/guide/setup#configuration
I don't know if this module should consider something that is not recommended.
@wattanx
Thanks fou your replying.
It looks like setting @nuxtjs/typescript-build as a module is not recommended
This is true, I know.
By the way, let me ask one question. When we use nuxt/bridge
with TypeScript, we may have to switch to nuxt.config.ts
. In these case, should we toggle bridge.typescript
on? Or, can we use nuxt/bridge by nuxt.config.js
?
In my local environment, when I tried to set both bridge.typescript: false
and modules: ['@nuxt/typescript-build']
with Nuxt.js 2, Nuxt recognized TypeScript by '@nuxt/typescript-build'
(I'm sorry I am not be ready to reproduction now...).
If I could not understand those TypeScript settings in nuxt/bridge, I will close this PR.
You can also use @nuxt/bridge
in nuxt.config.js
.
The following environment is nuxt.config.js and bridge.typescript: true
.
https://stackblitz.com/edit/github-9xjfzr
Wow... I did not know that... I'm so sorry that I misunderstood. Thank you so much and I close this PR.
🔗 Linked issue
❓ Type of change
📚 Description
This is the first time to send PR to this repository...(I do not have any confidence)
This PR prevents bridge from using both
nuxt/typescript-build
andbridge.typescript
settings both. In my researching usingbridge.typescript
settings, I found that developers can utilizenuxt/typescript-build
inmodules
array ofdefineNuxtConfig
. (i.e. I could set like thismodules: ['@nuxt/typescript-build']
).I guess that
nuxt/bridge
may have developers use either@nuxt/typescript-build
orbridge.typescript
, so I made this. Please review!If necessary, I will be ready reproductions.
📝 Checklist