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

vue3 build.rollupOptions.external #583

Open
smartXJ opened this issue Mar 11, 2024 · 0 comments
Open

vue3 build.rollupOptions.external #583

smartXJ opened this issue Mar 11, 2024 · 0 comments

Comments

@smartXJ
Copy link

smartXJ commented Mar 11, 2024

uni cli项目 一使用 u-parse就提示【u-parse 就是mp-html】

[vite]: Rollup failed to resolve import "F:/project/test/myself/demo/src/layout/node/node.vue" from "F:/project/test/myself/demo/node_modules/mp-html/dist/uni-app/components/mp-html/mp-html.vue".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`

下面是我有用到的东西

"dependencies": {
    "@dcloudio/uni-app": "3.0.0-3090920231225001",
    "@dcloudio/uni-app-plus": "3.0.0-3090920231225001",
    "@dcloudio/uni-components": "3.0.0-3090920231225001",
    "@dcloudio/uni-h5": "3.0.0-3090920231225001",
    "@dcloudio/uni-mp-alipay": "3.0.0-3090920231225001",
    "@dcloudio/uni-mp-baidu": "3.0.0-3090920231225001",
    "@dcloudio/uni-mp-jd": "3.0.0-3090920231225001",
    "@dcloudio/uni-mp-kuaishou": "3.0.0-3090920231225001",
    "@dcloudio/uni-mp-lark": "3.0.0-3090920231225001",
    "@dcloudio/uni-mp-qq": "3.0.0-3090920231225001",
    "@dcloudio/uni-mp-toutiao": "3.0.0-3090920231225001",
    "@dcloudio/uni-mp-weixin": "3.0.0-3090920231225001",
    "@dcloudio/uni-mp-xhs": "3.0.0-3090920231225001",
    "@dcloudio/uni-quickapp-webview": "3.0.0-3090920231225001",
    "clipboard": "^2.0.11",
    "dayjs": "^1.11.10",
    "pinia": "2.0.33",
    "strip-json-comments": "^3.1.1",
    "unplugin-auto-import": "^0.17.5",
    "uview-plus": "^3.1.45",
    "vue": "^3.2.45",
    "vue-i18n": "^9.1.9"
  },
  "devDependencies": {
    "@dcloudio/types": "^3.3.2",
    "@dcloudio/uni-automator": "3.0.0-3090920231225001",
    "@dcloudio/uni-cli-shared": "3.0.0-3090920231225001",
    "@dcloudio/uni-stacktracey": "3.0.0-3090920231225001",
    "@dcloudio/vite-plugin-uni": "3.0.0-3090920231225001",
    "@types/wechat-miniprogram": "^3.4.7",
    "@uni-helper/uni-app-types": "^0.5.12",
    "@vue/compiler-sfc": "^3.4.15",
    "@vue/runtime-core": "^3.2.45",
    "@vue/tsconfig": "^0.1.3",
    "miniprogram-api-typings": "^3.12.2",
    "sass": "^1.70.0",
    "sass-loader": "10",
    "strip-json-comments": "^3.1.1",
    "typescript": "^4.9.4",
    "vite": "4.0.3",
    "vue-tsc": "^1.0.24"
  }
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

1 participant