Giter Site home page Giter Site logo

Comments (7)

husayt avatar husayt commented on June 3, 2024

@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.

TonyLuo avatar TonyLuo commented on June 3, 2024

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.

TonyLuo avatar TonyLuo commented on June 3, 2024

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....
image
image

from nuxt-property-decorator.

husayt avatar husayt commented on June 3, 2024

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.

rubybrowncoat avatar rubybrowncoat commented on June 3, 2024

This issue is back with a vengeance with nuxt 2.9 and 2.9.1.

from nuxt-property-decorator.

husayt avatar husayt commented on June 3, 2024

from nuxt-property-decorator.

JakubKoralewski avatar JakubKoralewski commented on June 3, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.