Closed arniu closed 2 years ago
使用 create-react-app (react-scripts: 5.0.0) 创建应用,引入 cloudbase-js-sdk,编译报错:
cloudbase-js-sdk
Compiled with problems:X ERROR in ./node_modules/@cloudbase/js-sdk/dist/index.esm.js 9:14-25 Should not import the named export 'version' (imported as 'pkg') from default-exporting module (only default export is available soon)
根据 Using named exports from JSON modules 修复即可。
1.7.2版本修复了该问题
使用 create-react-app (react-scripts: 5.0.0) 创建应用,引入
cloudbase-js-sdk
,编译报错:根据 Using named exports from JSON modules 修复即可。