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

[Bug]: Vue introduces Element-Plus to report error #1506

Open
liushuai05 opened this issue Mar 1, 2024 · 0 comments
Open

[Bug]: Vue introduces Element-Plus to report error #1506

liushuai05 opened this issue Mar 1, 2024 · 0 comments
Labels
bug Something isn't working untriaged Requires traige

Comments

@liushuai05
Copy link

What happened?

When I adopted the time of introducing element-plus in the sample vue folder, I encountered the following error:

  VITE v3.2.8  ready in 1887 ms

  ➜  Local:   http://127.0.0.1:5173/
  ➜  Network: use --host to expose
✘ [ERROR] Could not resolve "@vue/shared"

    ../../../../node_modules/.aspect_rules_js/element-plus@2.5.6_vue_3.2.45/node_modules/element-plus/es/components/autocomplete/src/autocomplete.mjs:1:41:
      1 │ import { NOOP, isString, isObject } from '@vue/shared';
        ╵                                          ~~~~~~~~~~~~~

  You can mark the path "@vue/shared" as external to exclude it from
  the bundle, which will remove this error.

✘ [ERROR] Could not resolve "@vue/shared"

    ../../../../node_modules/.aspect_rules_js/element-plus@2.5.6_vue_3.2.45/node_modules/element-plus/es/components/calendar/src/calendar.mjs:3:32:
      3 │ import { isArray, isDate } from '@vue/shared';
        ╵                                 ~~~~~~~~~~~~~

  You can mark the path "@vue/shared" as external to exclude it from
  the bundle, which will remove this error.

✘ [ERROR] Could not resolve "@vue/shared"

    ../../../../node_modules/.aspect_rules_js/element-plus@2.5.6_vue_3.2.45/node_modules/element-plus/es/components/input/src/input.mjs:1:25:
      1 │ import { isString } from '@vue/shared';
        ╵                          ~~~~~~~~~~~~~

  You can mark the path "@vue/shared" as external to exclude it from
  the bundle, which will remove this error.

......

The details of log are as follows:
txt.log

i used pnpm i@vue /shared --workspace-root and yarn add@vue /shared neither worked and added the package to BUILD.bazel in the vue folder as well

image

Hope to get help from veterans.
Thank you very much.

Version

Development (host) and target OS/architectures: manjaro 21

Output of bazel --version: 7.0.1

Version of the Aspect rules, or other relevant rules from your
WORKSPACE or MODULE.bazel file:

Language(s) and/or frameworks involved: vue

How to reproduce

Here are reproducible examples:
https://github.com/liushuai05/bazel_examples/tree/main/frontend/vue

Any other information?

No response

@liushuai05 liushuai05 added the bug Something isn't working label Mar 1, 2024
@github-actions github-actions bot added the untriaged Requires traige label Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged Requires traige
Projects
Status: No status
Development

No branches or pull requests

1 participant