Comments (7)
@TonyLuo do you still have this issue with nuxt 2.6.0? If yes could you provide a reproducible simple project on codesandbox.
from nuxt-property-decorator.
still the same issue after upgrade to nuxt 2.6.1.
I fix it by adding "@nuxt/vue-app" into tsconfig.json
tsconfig.json
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"lib": [
"esnext",
"esnext.asynciterable",
"dom"
],
"esModuleInterop": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"suppressImplicitAnyIndexErrors": true,
"allowJs": true,
"sourceMap": true,
"strict": true,
"noImplicitAny": false,
"noEmit": true,
"baseUrl": "./",
"skipLibCheck": true,
"importHelpers": true,
"paths": {
"*": [
"types/*"
],
"~/*": [
"./*"
],
"@/*": [
"./*"
]
},
"types": [
"@nuxt/vue-app",
"@types/node",
"@types/webpack-env"
]
},
"exclude": [
"node_modules"
]
}
from nuxt-property-decorator.
oh... so bad.
Adding "@nuxt/vue-app" into tsconfig.json can fix this issue in nuxt 2.5.1 , but it doesn't work in nuxt 2.6.1....
from nuxt-property-decorator.
This is my config and all works ok with 2.6.1. If you still have a problem best is share a simple project with your issue.
{
"compilerOptions": {
"outDir": "./dist.js",
"resolveJsonModule": true,
"allowJs": true,
"checkJs": true,
"allowSyntheticDefaultImports": true,
"suppressImplicitAnyIndexErrors": true,
"esModuleInterop": true,
"jsx": "preserve",
"experimentalDecorators": true,
"sourceMap": true,
"strict": true,
"noImplicitAny": false,
"noUnusedLocals": true,
"noUnusedParameters": false,
"removeComments": true,
"pretty": true,
"baseUrl": ".",
"paths": {
"~/*": [
"src/*"
],
"@/*": [
"src/*"
]
},
"plugins": [
{
"name": "typescript-tslint-plugin"
}
],
"types": [
"@types/node",
"@types/jest",
"@nuxt/vue-app-edge"
],
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"lib": [
"esnext",
"esnext.asynciterable",
"dom"
],
"noEmit": true
},
"include": [
"./index.d.ts",
"./rest.d.ts",
"./src/**/*.ts",
"./src/**/*.vue"
],
"exclude": [
".nuxt",
".vscode",
"dist",
"dist.js",
"node_modules"
]
}
from nuxt-property-decorator.
This issue is back with a vengeance with nuxt 2.9 and 2.9.1.
from nuxt-property-decorator.
from nuxt-property-decorator.
@husayt I think the problem still exists or there is a problem on my side, I've got more info in #62
from nuxt-property-decorator.
Related Issues (20)
- Expose PropType from vue
- Pinia - Vuex will stop being updated
- @On decorator not working properly
- The question about hooks HOT 8
- Nuxt Hook not registering HOT 1
- the invoke order of 'head' and 'asyncData' seems not correct HOT 1
- Nuxt-Property-Decorator 3 - Nuxt 3, Vue 3 and Vue Class Component v8 readiness HOT 14
- Access this in head HOT 1
- Cannot read property of undefined
- Getter named as "loading" not acceptable HOT 6
- Cannot access this inside head HOT 2
- Nuxt 3.0 support HOT 1
- Module parse failed: Unexpected character '@' HOT 1
- bug report:The latest version of plugin causes rendering errors HOT 1
- Webstorm showing type error: Cannot resolve symbol 'Prop' HOT 1
- yarn package not found HOT 3
- How i can use computed? HOT 1
- How to make visible the "nuxtServerInit" action for Nuxt.js action in the case with dynamic modules only? HOT 5
- New fetchDelay hook for Nuxt >=2.12
- Function in component options with context
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuxt-property-decorator.