No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Error: Caccont find name 'process'

    Help
    4
    4
    2457
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Abstauber last edited by

      Hi, i changed my quasar Project for using typescript. After Installation and all changes i got some errors.
      Now i have one Error i cant solve:
      TS2591: Cannot find name ‘process’. Do you need to install type definitions for node? Try npm i @types/node and then add node to the types field in your tsconfig.

      i installt npm i @types/node and added it to the config but nothing changed.

      Current Config:
      {
      “compilerOptions”: {
      “allowJs”: true,
      “sourceMap”: true,
      “target”: “es6”,
      “strict”: true,
      “experimentalDecorators”: true,
      “module”: “esnext”,
      “moduleResolution”: “node”,
      “baseUrl”: “.”,
      “types”: [
      “quasar”
      ]
      },
      “exclude”: [“node_modules”]
      }

      Current TS Version: 3.5.3

      Current env.d.ts:
      declare namespace NodeJS {
      interface ProcessEnv {
      NODE_ENV: string
      VUE_ROUTER_MODE: ‘hash’ | ‘history’ | ‘abstract’ | undefined
      VUE_ROUTER_BASE: string | undefined
      }
      }

      Can anyone help me to fix the Problem?

      1 Reply Last reply Reply Quote 1
      • A
        Alex last edited by

        Have the same issue.
        After installing @types/node with:
        npm install --save-dev ts-loader typescript @types/node
        I get this issue and need to install the typescript extension again:
        app:extension ⚠️ Quasar App Extension “@quasar/typescript” is missing…

        1 Reply Last reply Reply Quote 0
        • metalsadman
          metalsadman last edited by metalsadman

          Better ask this in our discord’s typescript channel. https://discordapp.com/channels/415874313728688138/596276596319453207

          1 Reply Last reply Reply Quote 0
          • J
            jjurado last edited by

            You need to add “node” in types property, in tsconfig.json

            1 Reply Last reply Reply Quote 0
            • First post
              Last post