Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tsc error when upgraded to 0.5.X from 0.4.X #780

Open
takahiro-1227 opened this issue Oct 24, 2023 · 1 comment
Open

Tsc error when upgraded to 0.5.X from 0.4.X #780

takahiro-1227 opened this issue Oct 24, 2023 · 1 comment

Comments

@takahiro-1227
Copy link

takahiro-1227 commented Oct 24, 2023

Hi!
When I upgraded to 0.5.X from 0.4.X, tsc transpile fail with this error.
Please help me if you know something about it 馃檱

../../node_modules/@types/webpack/node_modules/webpack/types.d.ts:1777:3 - error TS1131: Property or signature expected.

1777  	get normalModuleLoader(): SyncHook<[object, NormalModule]>;
      	~~~

../../node_modules/@types/webpack/node_modules/webpack/types.d.ts:1778:3 - error TS1109: Expression expected.

1778  }>;
       ~

../../node_modules/@types/webpack/node_modules/webpack/types.d.ts:1778:4 - error TS1109: Expression expected.

1778  }>;
.
.
.

yarn webpack have no problem.

"typescript": "4.1.3",
"react-refresh": "^0.14.0",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^4.15.1"
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
"@types/webpack": "^5.28.4",

tsconfig.json

{
  "compilerOptions": {
    "moduleResolution": "node",
    "strict": true,
    "esModuleInterop": true,
    "experimentalDecorators": true,
    "emitDecoratorMetadata": true,
    "preserveSymlinks": true,
    "skipLibCheck": true,
    "jsx": "preserve",
    "incremental": true,
    "isolatedModules": true,
    "module": "esnext",
    "noEmit": true,
    "target": "esnext"
  }
}
@takahiro-1227
Copy link
Author

takahiro-1227 commented Oct 24, 2023

When I upgraded typescript to 5.2.2, this error did not happen !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant