无法正常运行 Can't resolve '@/KgmWasm/KgmWasmBundle' in 'E:\github\unlock-music\src\decrypt' #31

Closed
opened 2023-02-03 06:43:36 +00:00 by kylebing · 2 comments
Contributor
name about title labels assignees
Bug报告 报告Bug以帮助改进程序 bug
  • 请按照此模板填写,否则可能立即被关闭
  • 我确认已经搜索过Issue不存并确认相同的Issue
  • 我有证据表明这是程序导致的问题(如不确认,可以在Discussions内提出)

Bug描述

正常更新最新程序,安装依赖之后提示这个错误,难道安装不对?是不是缺少东西啊。我把这两个文件的内容注释掉就能正常运行了。

复现方法

正常 clone 仓库,正常 yarn

程序截图或者Console报错信息

1
2

文字版错误提示如下:

 error  in ./src/utils/worker.ts

Syntax Error: ModuleNotFoundError: Module not found: Error: Can't resolve '@/KgmWasm/KgmWasmBundle' in 'E:\github\unlock-music\src\decrypt'


 @ ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/component/FileSelector.vue?vue&type=s
cript&lang=js& 1:0-117
 @ ./src/component/FileSelector.vue?vue&type=script&lang=js&
 @ ./src/component/FileSelector.vue
 @ ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/App.vue?vue&type=script&lang=js&     
 @ ./src/App.vue?vue&type=script&lang=js&
 @ ./src/App.vue
 @ ./src/main.ts
 @ multi (webpack)-dev-server/client?http://192.168.0.107:8081&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.ts

ERROR in src/decrypt/kgm_wasm.ts:1:29
TS2307: Cannot find module '@/KgmWasm/KgmWasmBundle' or its corresponding type declarations.
  > 1 | import KgmCryptoModule from '@/KgmWasm/KgmWasmBundle';
      |                             ^^^^^^^^^^^^^^^^^^^^^^^^^
    2 | import { MergeUint8Array } from '@/utils/MergeUint8Array';
    3 |
    4 | // 每次处理 2M 的数据

ERROR in src/decrypt/qmc_wasm.ts:1:29
TS2307: Cannot find module '@/QmcWasm/QmcWasmBundle' or its corresponding type declarations.
  > 1 | import QmcCryptoModule from '@/QmcWasm/QmcWasmBundle';
      |                             ^^^^^^^^^^^^^^^^^^^^^^^^^
    2 | import { MergeUint8Array } from '@/utils/MergeUint8Array';
    3 |
    4 | // 每次处理 2M 的数据


环境信息:

  • 操作系统和浏览器: Windows 10, Chrome
  • 程序版本:最新版
  • 获取音乐文件所使用的客户端及其版本信息:

附加信息

--- name: Bug报告 about: 报告Bug以帮助改进程序 title: '' labels: bug assignees: '' --- * 请按照此模板填写,否则可能立即被关闭 - [x] 我确认已经搜索过Issue不存并确认相同的Issue - [x] 我有证据表明这是程序导致的问题(如不确认,可以在[Discussions](https://github.com/ix64/unlock-music/discussions)内提出) **Bug描述** 正常更新最新程序,安装依赖之后提示这个错误,难道安装不对?是不是缺少东西啊。我把这两个文件的内容注释掉就能正常运行了。 **复现方法** 正常 clone 仓库,正常 yarn **程序截图或者Console报错信息** ![1](https://git.unlock-music.dev/attachments/c533aeb5-dbc1-4a1c-b073-9771deb581d0) ![2](https://git.unlock-music.dev/attachments/b2300110-dac1-415c-a7a6-0494bfd54535) 文字版错误提示如下: ```bash error in ./src/utils/worker.ts Syntax Error: ModuleNotFoundError: Module not found: Error: Can't resolve '@/KgmWasm/KgmWasmBundle' in 'E:\github\unlock-music\src\decrypt' @ ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/component/FileSelector.vue?vue&type=s cript&lang=js& 1:0-117 @ ./src/component/FileSelector.vue?vue&type=script&lang=js& @ ./src/component/FileSelector.vue @ ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/App.vue?vue&type=script&lang=js& @ ./src/App.vue?vue&type=script&lang=js& @ ./src/App.vue @ ./src/main.ts @ multi (webpack)-dev-server/client?http://192.168.0.107:8081&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.ts ERROR in src/decrypt/kgm_wasm.ts:1:29 TS2307: Cannot find module '@/KgmWasm/KgmWasmBundle' or its corresponding type declarations. > 1 | import KgmCryptoModule from '@/KgmWasm/KgmWasmBundle'; | ^^^^^^^^^^^^^^^^^^^^^^^^^ 2 | import { MergeUint8Array } from '@/utils/MergeUint8Array'; 3 | 4 | // 每次处理 2M 的数据 ERROR in src/decrypt/qmc_wasm.ts:1:29 TS2307: Cannot find module '@/QmcWasm/QmcWasmBundle' or its corresponding type declarations. > 1 | import QmcCryptoModule from '@/QmcWasm/QmcWasmBundle'; | ^^^^^^^^^^^^^^^^^^^^^^^^^ 2 | import { MergeUint8Array } from '@/utils/MergeUint8Array'; 3 | 4 | // 每次处理 2M 的数据 ``` **环境信息:** - 操作系统和浏览器: Windows 10, Chrome - 程序版本:最新版 - 获取音乐文件所使用的客户端及其版本信息: **附加信息**

WASM部分
环境要求

Linux
python3
运行此目录下的build-wasm

./scripts/build-wasm.sh

WASM部分 环境要求 Linux python3 运行此目录下的build-wasm ./scripts/build-wasm.sh
Author
Contributor

以前不需要,刚看到,OK

以前不需要,刚看到,OK
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: um/web#31
No description provided.