myxvisual / react-uwp

📱⌨ React Components that Implement Microsoft's UWP Design & Fluent Design.
https://react-uwp.com
MIT License
1.18k stars 78 forks source link

Cannot find namespace 'ReactUWP'. #56

Closed RohitLuthra19 closed 6 years ago

RohitLuthra19 commented 6 years ago

Problem description

By following topic on your website I get started. But I am getting an error message as "Cannot find namespace 'ReactUWP'."

Link to minimal working code that reproduces the issue

Versions

myxvisual commented 6 years ago
{
  "compileOnSave": false,
  "compilerOptions": {
    "module": "commonjs",
    "noUnusedLocals": false,
    "noUnusedParameters": false,
    "target": "es5",
    "sourceMap": true,
    "moduleResolution": "node",
    "allowJs": false,
    "declaration": true,
    "jsx": "react",
    "experimentalDecorators": true,
    "removeComments": true,
    "noImplicitAny": false,
    "outDir": "./build",
    "noLib": false,
    "lib": ["dom", "es5", "es2015", "es2016.array.include"],
    "typeRoots": [
      "./node_modules/@types"
    ]
  },
  "filesGlob": [
    "**/*.ts",
    "**/*.tsx"
  ],
  "files": [
    "node_modules/react-uwp/index.d.ts"
  ],
  "include": [
    "*.ts",
    "**/*.ts",
    "**/*.tsx",
    "__mocks__/**/*.ts",
    "__mocks__/**/*.tsx"
  ],
  "exclude": [
    "node_modules"
  ]
}

@RohitLuthra19 hello, this is my tsconfig.json configuration file, can you see any difference between your configuration file? maybe it can help you.

dustyroberts commented 6 years ago

@myxvisual .. its the "include" property that did the trick for me.