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

使用taro 初始化项目选择vue3-NutUI4模板,使用含有overlay的组件,构建支付宝时报错 #2594

Closed
awumiao opened this issue Oct 13, 2023 · 3 comments
Labels
Need Reproduce 需要提供可复现的代码用于问题排查

Comments

@awumiao
Copy link

awumiao commented Oct 13, 2023

NutUI 包名

@nutui/nutui

NutUI 版本号

4.1.6

平台

alipay

重现链接

重现步骤

1、taro init project
2、模板选项 vue3/no ts/sass/webpack5/pnpm/vue3-pinia
3、支付宝配置

# project.alipay.json
{
  "format": 2,
  "compileOptions": {
    "component2": true,
    "transpile": {
      "script": {
        "ignore": ["node_modules/**"]
      }
    }
  }
}

4、pnpm run dev:alipay
5、 构建失败
err1

无其他额外操作

期望的结果是什么?

构建支付宝小程序正常显示

实际的结果是什么?

image
image

环境信息

No response

其他补充信息

{
  "name": "nut4",
  "version": "1.0.0",
  "private": true,
  "description": "",
  "templateInfo": {
    "name": "vue3-NutUI4",
    "typescript": false,
    "css": "sass"
  },
  "scripts": {
    "build:weapp": "taro build --type weapp",
    "build:swan": "taro build --type swan",
    "build:alipay": "taro build --type alipay",
    "build:tt": "taro build --type tt",
    "build:h5": "taro build --type h5",
    "build:rn": "taro build --type rn",
    "build:qq": "taro build --type qq",
    "build:jd": "taro build --type jd",
    "build:quickapp": "taro build --type quickapp",
    "dev:weapp": "npm run build:weapp -- --watch",
    "dev:swan": "npm run build:swan -- --watch",
    "dev:alipay": "npm run build:alipay -- --watch",
    "dev:tt": "npm run build:tt -- --watch",
    "dev:h5": "npm run build:h5 -- --watch",
    "dev:rn": "npm run build:rn -- --watch",
    "dev:qq": "npm run build:qq -- --watch",
    "dev:jd": "npm run build:jd -- --watch",
    "dev:quickapp": "npm run build:quickapp -- --watch"
  },
  "browserslist": [
    "last 3 versions",
    "Android >= 4.1",
    "ios >= 8"
  ],
  "author": "",
  "dependencies": {
    "@babel/runtime": "^7.7.7",
    "@tarojs/components": "3.6.17",
    "@tarojs/helper": "3.6.17",
    "@tarojs/plugin-platform-weapp": "3.6.17",
    "@tarojs/plugin-platform-alipay": "3.6.17",
    "@tarojs/plugin-platform-tt": "3.6.17",
    "@tarojs/plugin-platform-swan": "3.6.17",
    "@tarojs/plugin-platform-jd": "3.6.17",
    "@tarojs/plugin-platform-qq": "3.6.17",
    "@tarojs/plugin-platform-h5": "3.6.17",
    "@tarojs/runtime": "3.6.17",
    "@tarojs/shared": "3.6.17",
    "@tarojs/taro": "3.6.17",
    "@tarojs/plugin-html": "3.6.17",
    "@tarojs/plugin-framework-vue3": "3.6.17",
    "vue": "^3.2.40",
    "@nutui/nutui-taro": "^4.0.4",
    "@nutui/icons-vue-taro": "^0.0.9"
  },
  "devDependencies": {
    "@babel/core": "^7.8.0",
    "@types/webpack-env": "^1.13.6",
    "webpack": "5.78.0",
    "@tarojs/taro-loader": "3.6.17",
    "@tarojs/webpack5-runner": "3.6.17",
    "@tarojs/cli": "3.6.17",
    "@vue/babel-plugin-jsx": "^1.0.6",
    "@vue/compiler-sfc": "^3.2.40",
    "babel-preset-taro": "3.6.17",
    "css-loader": "3.4.2",
    "eslint-plugin-vue": "^8.0.0",
    "eslint-config-taro": "3.6.17",
    "eslint": "^8.12.0",
    "stylelint": "9.3.0",
    "style-loader": "1.3.0",
    "vue-loader": "^17.0.0",
    "typescript": "^4.1.0",
    "unplugin-vue-components": "^0.23.0",
    "ts-node": "^10.9.1",
    "@types/node": "^18.15.11"
  }
}

@eiinu eiinu added the Need Reproduce 需要提供可复现的代码用于问题排查 label Oct 13, 2023
@github-actions
Copy link

你好 @awumiao, 我们需要你提供一个最小重现实例以便于我们帮你排查问题。你可以提供一个基于 Taro NutUI4.0 模板项目的 GitHub 仓库链接(@nutui/nutui-taro),也可以通过 CodeSandbox 创建一个在线实例(@nutui/nutui)。请确保选择准确的版本。

@awumiao
Copy link
Author

awumiao commented Oct 13, 2023

@eiinu
Copy link
Member

eiinu commented Oct 13, 2023

https://github.com/awumiao/nutui4-test/tree/main @eiinu

使用该仓库代码未能复现问题。

  • node:v16.15.1
  • 小程序IDE:3.7.13
  • 支付宝基础库:2.9.2

@awumiao awumiao closed this as completed Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Need Reproduce 需要提供可复现的代码用于问题排查
Projects
None yet
Development

No branches or pull requests

2 participants