You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get this error in a Typescript project of mine. So I cloned the universal-demo project and changed things to typescript( except server/index.js ). The project builds successfully, and then I get the same error.
What am I missing here? The only changes I have made to the webpack configs is adding at-loader to the rules and including ts and tsx to resolve extensions.
@ScriptedAlchemy I'm actually seeing this problem on webpack 4 right now. My impression is that it has something to do with externalization: I encountered this problem when I went to fix my externals webpack configuration. When everything was included in the same server bundle, it worked fine; when I fixed the externalization, things broke.
I get this error in a Typescript project of mine. So I cloned the universal-demo project and changed things to typescript( except server/index.js ). The project builds successfully, and then I get the same error.
What am I missing here? The only changes I have made to the webpack configs is adding at-loader to the rules and including ts and tsx to resolve extensions.
Current project structure:
tsconfig.json
{
"compileOnSave": true,
"exclude": ["node_modules"],
"compilerOptions": {
"noStrictGenericChecks": true,
"allowJs": true,
"declaration": false,
"noResolve": false,
"jsx": "react",
"module": "commonjs",
"target": "es2015",
"experimentalDecorators": true,
"sourceMap": true,
"noImplicitAny": false,
"noImplicitReturns": true,
"outDir": "./dist/",
"skipLibCheck": true,
"allowSyntheticDefaultImports": true,
"moduleResolution": "node",
//"types": [ "node" ],
"typeRoots": []
}
}
sample : https://github.com/aneogiarcadix/universal-demo-ts
The text was updated successfully, but these errors were encountered: