Closed kalicyh closed 3 months ago
这个包是否有问题?
测试和编译是疯狂报错,看错误信息好像是想要引用intro.js
包的文件,使用了相对路径导致报错。
WARNING in ./node_modules/intro.js/intro.module.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/one-api/web/src/util/checkRight.ts' file: Error: ENOENT: no such file or directory, open '/Users/one-api/web/src/util/checkRight.ts'
WARNING in ./node_modules/intro.js/intro.module.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/one-api/web/src/util/cloneObject.ts' file: Error: ENOENT: no such file or directory, open '/Users/one-api/web/src/util/cloneObject.ts'
WARNING in ./node_modules/intro.js/intro.module.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/one-api/web/src/util/cookie.ts' file: Error: ENOENT: no such file or directory, open '/Users/one-api/web/src/util/cookie.ts'
WARNING in ./node_modules/intro.js/intro.module.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/one-api/web/src/util/createElement.ts' file: Error: ENOENT: no such file or directory, open '/Users/one-api/web/src/util/createElement.ts'
WARNING in ./node_modules/intro.js/intro.module.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/one-api/web/src/util/debounce.ts' file: Error: ENOENT: no such file or directory, open '/Users/one-api/web/src/util/debounce.ts'
先npm install一下,我这边删掉全部文件拉取后部署没问题,win11
close #issue_number
我已确认该 PR 已自测通过,相关截图如下: