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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

与 nutui-react版本兼容问题 #12

Open
zhengjieyuan opened this issue May 16, 2023 · 1 comment
Open

与 nutui-react版本兼容问题 #12

zhengjieyuan opened this issue May 16, 2023 · 1 comment

Comments

@zhengjieyuan
Copy link

zhengjieyuan commented May 16, 2023

新创建的项目,使用nutui-react最新版本,taro3.6.5。
添加nutui-biz最新版本运行报错。
Taro CLI 3.6.5 environment info:
System:
OS: Windows 10 10.0.22621
Binaries:
Node: 18.16.0 - D:\ProgramFiles\nodejs\node.EXE
npm: 9.5.1 - D:\ProgramFiles\nodejs\npm.CMD
npmPackages:
@tarojs/cli: 3.6.5 => 3.6.5
@tarojs/components: 3.6.5 => 3.6.5
@tarojs/helper: 3.6.5 => 3.6.5
@tarojs/plugin-framework-react: 3.6.5 => 3.6.5
@tarojs/plugin-html: 3.6.5 => 3.6.5
@tarojs/plugin-platform-alipay: 3.6.5 => 3.6.5
@tarojs/plugin-platform-h5: 3.6.5 => 3.6.5
@tarojs/plugin-platform-jd: 3.6.5 => 3.6.5
@tarojs/plugin-platform-qq: 3.6.5 => 3.6.5
@tarojs/plugin-platform-swan: 3.6.5 => 3.6.5
@tarojs/plugin-platform-tt: 3.6.5 => 3.6.5
@tarojs/plugin-platform-weapp: 3.6.5 => 3.6.5
@tarojs/react: 3.6.5 => 3.6.5
@tarojs/runtime: 3.6.5 => 3.6.5
@tarojs/shared: 3.6.5 => 3.6.5
@tarojs/taro: 3.6.5 => 3.6.5
@tarojs/webpack5-runner: 3.6.5 => 3.6.5
babel-preset-taro: 3.6.5 => 3.6.5
eslint-config-taro: 3.6.5 => 3.6.5
react: ^18.0.0 => 18.2.0

报错信息:
ReferenceError: IntersectionObserver is not defined at initObserver (._node_modules_@nutui_nutui-react_dist_esm_Image.js:95) at ._node_modules_@nutui_nutui-react_dist_esm_Image.js:121 at Gg (vendors-node_modules_taro_weapp_prebundle_chunk-NPFLJJQY_js.js?t=wechat&s=1684221175362&v=5e4db42c159a4e467dd7ce6f1e6bb88f:3393) at Fh (vendors-node_modules_taro_weapp_prebundle_chunk-NPFLJJQY_js.js?t=wechat&s=1684221175362&v=5e4db42c159a4e467dd7ce6f1e6bb88f:4733) at vendors-node_modules_taro_weapp_prebundle_chunk-NPFLJJQY_js.js?t=wechat&s=1684221175362&v=5e4db42c159a4e467dd7ce6f1e6bb88f:4605 at workLoop (vendors-node_modules_taro_weapp_prebundle_chunk-NPFLJJQY_js.js?t=wechat&s=1684221175362&v=5e4db42c159a4e467dd7ce6f1e6bb88f:217) at flushWork (vendors-node_modules_taro_weapp_prebundle_chunk-NPFLJJQY_js.js?t=wechat&s=1684221175362&v=5e4db42c159a4e467dd7ce6f1e6bb88f:196) at Function.performWorkUntilDeadline (vendors-node_modules_taro_weapp_prebundle_chunk-NPFLJJQY_js.js?t=wechat&s=1684221175362&v=5e4db42c159a4e467dd7ce6f1e6bb88f:402) at f (WASubContext.js?t=wechat&s=1684221175362&v=2.31.1:1) at WASubContext.js?t=wechat&s=1684221175362&v=2.31.1:1(env: Windows,mp,1.06.2301160; lib: 2.31.1)

版本兼容问题?

@treeNewBee9527
Copy link

为什么我的不报错就是没有样式

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

2 participants