I\'m trying to put together a very basic project with React, TypeScript and Webpack. When I compile I get the following errors from the react
folder in n
Webpack is not resolving .js
files. Add this to your webpack.config.js
.
resolve: {
extensions: [".ts", ".tsx", ".js", ".jsx"]
},
Here is the tsconfig.json
I used to run your example.
{
"compilerOptions": {
"jsx": "react",
"lib": ["es6", "dom"],
"rootDir": "src",
"module": "commonjs",
"target": "es5",
"sourceMap": true,
"moduleResolution": "node",
"noImplicitReturns": true,
"noImplicitThis": true,
"noImplicitAny": true,
"strictNullChecks": true
},
"include": [
"./src"
],
"exclude": [
"node_modules",
"build"
]
}
In VSCode, check Deno Extension and set it Enable(Workspace)