Closed abclaboratory closed 2 months ago
@abclaboratory 请尝试以下操作:
npm config set "@tiptap-pro:registry" https://registry.tiptap.dev/
npm config set "//registry.tiptap.dev/:_authToken" 9fsQEgp8C8pbxpk8PFAjYn64BtBDq6HfXmI2qgpnI7XYr/OwHaMvOUIE5mfVR49y
npm install --save @umoteam/editor @umoteam/editor-external
可以安装成功,但是启动会失败 。不清楚是我环境的问题吗? VITE v5.2.13 ready in 312 ms
➜ Local: http://localhost:5173/ ➜ Network: use --host to expose ➜ press h + enter to show help ✘ [ERROR] Could not resolve "/Users/tobee/Documents/vue3/node_modules/prismjs/prism.js"
node_modules/@umoteam/editor/dist/es/umo-editor.mjs:11:15:
11 │ import N_ from "/Users/tobee/Documents/vue3/node_modules/prismjs/prism.js";
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
✘ [ERROR] Could not resolve "/Users/tobee/Documents/vue3/node_modules/prism-code-editor/dist/index.js"
node_modules/@umoteam/editor/dist/es/umo-editor.mjs:83:35:
83 │ import { createEditor as gw } from "/Users/tobee/Documents/vue3/node_modules/prism-code-editor/dist/index.js";
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
13:53:51 [vite] error while updating dependencies: Error: Build failed with 2 errors: node_modules/@umoteam/editor/dist/es/umo-editor.mjs:11:15: ERROR: Could not resolve "/Users/tobee/Documents/vue3/node_modules/prismjs/prism.js" node_modules/@umoteam/editor/dist/es/umo-editor.mjs:83:35: ERROR: Could not resolve "/Users/tobee/Documents/vue3/node_modules/prism-code-editor/dist/index.js" at failureErrorWithLog (G:\umodoc\hq_edit\node_modules\esbuild\lib\main.js:1651:15) at G:\umodoc\hq_edit\node_modules\esbuild\lib\main.js:1059:25 at G:\umodoc\hq_edit\node_modules\esbuild\lib\main.js:1527:9 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
@umodoc
@abclaboratory 升级依赖时引入了一个新的bug,最新版本已修复。
@umodoc VITE v5.2.13 ready in 347 ms
➜ Local: http://localhost:5173/ ➜ Network: use --host to expose ➜ press h + enter to show help ✘ [ERROR] Could not resolve "/Users/tobee/Documents/vue3/node_modules/prism-code-editor/dist/index.js"
node_modules/@umoteam/editor/dist/es/umo-editor.mjs:83:35:
83 │ import { createEditor as gw } from "/Users/tobee/Documents/vue3/node_modules/prism-code-editor/dist/index.js";
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@umodoc VITE v5.2.13 ready in 347 ms
➜ Local: http://localhost:5173/ ➜ Network: use --host to expose ➜ press h + enter to show help ✘ [ERROR] Could not resolve "/Users/tobee/Documents/vue3/node_modules/prism-code-editor/dist/index.js"
node_modules/@umoteam/editor/dist/es/umo-editor.mjs:83:35: 83 │ import { createEditor as gw } from "/Users/tobee/Documents/vue3/node_modules/prism-code-editor/dist/index.js"; ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@abclaboratory 该问题在最新版中已修复,貌似是最新版本的vite打包时出现了未预期的错误
好的,感谢,我用其它版本的试试
好的,感谢,我用其它版本的试试
与你本机环境无关,是发布npm包时vite打包出现了问题。
这个问题是否已经存在?
如何复现
npm i @umoteam/editor
预期结果
可以正常安装最新版本
实际结果
npm i @umoteam/editor npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/@tiptap-pro%2fextension-invisible-characters - Not found npm ERR! 404 npm ERR! 404 '@tiptap-pro/extension-invisible-characters@^2.8.8' is not in this registry. npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in: C:\Users\xxxx\AppData\Local\npm-cache_logs\2024-06-12T12_23_58_951Z-debug-0.log
截图或视频
[在这里上传图片] ![Uploading image.png…]()
其他说明
无
版本
最新版
浏览器及浏览器版本
无