casdoor / casdoor-vue-sdk

Vue client SDK for Casdoor
https://github.com/casdoor/casdoor
Apache License 2.0
15 stars 10 forks source link

Could not resolve... error after update to latest release #24

Closed stefanwuthrich closed 1 year ago

stefanwuthrich commented 1 year ago

I update to latest release from 3. March and get the error below. Same happens also happens with a fresh yarn install after deleting node_modules

` ✘ [ERROR] Could not resolve "/home/runner/work/casdoor-vue-sdk/casdoor-vue-sdk/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"

node_modules/casdoor-vue-sdk/src/CasdoorSDK.js:1:30:
  1 │ ...asyncToGenerator from "/home/runner/work/casdoor-vue-sdk/casdoor-vue-sdk/node_modules/@babel/runtime/helpers/esm/asyncT...
    ╵                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

✘ [ERROR] Could not resolve "regenerator-runtime/runtime.js"

node_modules/casdoor-vue-sdk/src/CasdoorSDK.js:2:7:
  2 │ import "regenerator-runtime/runtime.js";
    ╵        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

You can mark the path "regenerator-runtime/runtime.js" as external to exclude it from the bundle, which will remove this error.

`

casbin-bot commented 1 year ago

@seriouszyx @ComradeProgrammer @Resulte

stefanwuthrich commented 1 year ago

npm: 9.1.3 node: v16.16.0v yarn: v1.22.19

hsluoyz commented 1 year ago

@stefanwuthrich hi, can you check starting from which release this issue happens? https://github.com/casdoor/casdoor-vue-sdk/releases

stefanwuthrich commented 1 year ago

@hsluoyz from 1.4.0

hsluoyz commented 1 year ago

@jakiuncle @imp2002

stefanwuthrich commented 1 year ago

Confirm its fixed. Thank you, guys