error: Package subpath './public/extractFiles' is not defined by "exports" in /home/bot/wiki/node_modules/extract-files/package.json #5113
-
|
How i can fix that error: |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 19 replies
-
|
Can you give more details ? Which version of Wiki.js are you trying to install ? Which version of nodeJS are you using ? Sources : |
Beta Was this translation helpful? Give feedback.
-
|
Maybe it is time to upgrade extract-files (version 9.0 in wikijs) when last is 13.0 supporting newer nodejs version. |
Beta Was this translation helpful? Give feedback.
-
|
For those who want to run nodejs16 under openSUSE Tumbleweed you can still install it from nodejs repository |
Beta Was this translation helpful? Give feedback.
-
|
This is still an issue today 2023-10-11, even though the official page states that both nodeJS 18 and 20 are supported with the latest wiki version! (https://docs.requarks.io/install/requirements#nodejs). Nasty, not cool... 😞 |
Beta Was this translation helpful? Give feedback.
-
|
Is this still not fixed? Using NodeJS v.20.11.1. "error: Package subpath './public/extractFiles' is not defined by "exports" in E:\repos\WikiJS\node_modules\extract-files\package.json" NodeJS v18.19.1 has the same error. |
Beta Was this translation helpful? Give feedback.
-
|
@zieglerjm @wngdarkjester @hinteadan @AzpektDev you guys dont have to do anything just navigate to your node_modules :-
and correct path of extract-files module like below - var extractFiles = require('../../extract-files/public/extractFiles'); After doing that it works like a charm. Used Node Latest Version - 20.11.1 |
Beta Was this translation helpful? Give feedback.



Can you give more details ? Which version of Wiki.js are you trying to install ? Which version of nodeJS are you using ?
I had this error using nodeJS 18 (latest stable version) which seems not supported by Wiki.js yet.
=> Downgrade to nodeJS 16
Sources :