Posted 30 August 2023, 5:38 pm EST - Updated 30 August 2023, 5:46 pm EST
I’m developing web app with wijmo(version 5.20221.857) using react, Typescript and vite environment.
When I ran app by “vite preview”, “Please upgrade react-dom package” message was shown in chrome’s console log.
It seems that wijmo is requiring “react-dom/client” module in bundled javascript.
If anyone knows how to fix this problem, please give me some advice.
Thank you in advance.
My tsconfig.json and tsconfig.node.json is below.
If more information is needed, I can attach whole project.
{
"compilerOptions": {
"target": "ES2020",
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,
"types": ["vitest/globals"],
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
"include": [
"src",
"specs/add.test.tsx",
"specs/HelloWorld.test.tsx",
"specs/SampleRedux.test.tsx"
],
"references": [{ "path": "./tsconfig.node.json" }]
}
{
"compilerOptions": {
"composite": true,
"skipLibCheck": true,
"module": "ESNext",
"moduleResolution": "bundler",
"allowSyntheticDefaultImports": true
},
"include": ["vite.config.ts"]
}