// ERROR in ./node_modules/.pnpm/@maxgraph+core@0.13.0/node_modules/@maxgraph/core/dist/index.js 175:0-24
// Module not found: Error: Can't resolve './types' in '/Users/wangshaoping/wspsc/workspace/wangshaoping/v8/platform/io.sc.platform.core.frontend/node_modules/.pnpm/@maxgraph+core@0.13.0/node_modules/@maxgraph/core/dist'
// Did you mean 'types.js'?
// BREAKING CHANGE: The request './types' failed to resolve only because it was resolved as fully specified
// (probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
// The extension in the request is mandatory for it to be fully specified.
rules:[
{
test:/\.js$/,
include:/[\/\\]@maxgraph[\/\\]core/,
resolve:{
fullySpecified: false,
},
},
],
},
// 解决 @maxgraph/core 的问题, 避免出现以下错误:
// ERROR in ./node_modules/.pnpm/platform-core@8.1.372_rglpzkkg4umhmrchez7aoyu2m4/node_modules/platform-core/dist/platform-core.js 3:428-453
// Module not found: Error: Package path . is not exported from package /Users/wangshaoping/wspsc/workspace/wangshaoping/v8/platform/io.sc.platform.core.frontend.doc/node_modules/.pnpm/platform-core@8.1.372_rglpzkkg4umhmrchez7aoyu2m4/node_modules/@maxgraph/core (see exports field in /Users/wangshaoping/wspsc/workspace/wangshaoping/v8/platform/io.sc.platform.core.frontend.doc/node_modules/.pnpm/platform-core@8.1.372_rglpzkkg4umhmrchez7aoyu2m4/node_modules/@maxgraph/core/package.json)