You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR in ./src/EditorFactory.js 81:19-83:57
Module not found: Error: Package path ./lib/languages is not exported from package /home/runner/work/text/text/node_modules/highlight.js (see exports field in /home/runner/work/text/text/node_modules/highlight.js/package.json)
@ ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/components/EditorWrapper.vue?vue&type=script&lang=js&
@ ./src/components/EditorWrapper.vue?vue&type=script&lang=js& 1:0-173 1:189-192 1:194-364 1:194-364
@ ./src/components/EditorWrapper.vue 2:0-65 3:0-60 3:0-60 11:2-8
@ ./src/public.js
Sample Code or Instructions to Reproduce
The code in question is trying to dynamically load languages with webpack:
const lang = await import(/* webpackChunkName: "highlight/[request]" */'highlight.js/lib/languages/' + languages[i])
I can reproduce this locally by checking out the dependabot/npm_and_yarn/highlight.js-11.3.1 branch and running
npm ci
npm run build
Expected behavior
The build should succeed.
Additional context
If i remove the exports section from node_modules/highlight.js/package.json the build succeeds.
The text was updated successfully, but these errors were encountered:
Describe the issue/behavior that seems buggy
Trying to upgrade nextcloud/text from version 10 to 11 results in
Sample Code or Instructions to Reproduce
The code in question is trying to dynamically load languages with webpack:
I can reproduce this locally by checking out the
dependabot/npm_and_yarn/highlight.js-11.3.1
branch and runningExpected behavior
The build should succeed.
Additional context
If i remove the
exports
section fromnode_modules/highlight.js/package.json
the build succeeds.The text was updated successfully, but these errors were encountered: