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
The npm scripts package and dev fails in Artix/Arch Linux in a fresh installation of Polar.
❯ yarn package
yarn run v1.22.19
$ yarn build && yarn package:electron
$ tsc -p electron/tsconfig.json && yarn theme
$ yarn theme:light && yarn theme:dark
$ lessc --include-path=node_modules --js ./src/theme/light.less ./public/themes/light.css
$ lessc --include-path=node_modules --js ./src/theme/dark.less ./public/themes/dark.css
$ cross-env CI=false PUBLIC_URL=./ rescripts build
node:internal/modules/cjs/loader:598
throw e;
^
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports"in /path/to/polar/node_modules/postcss-safe-parser/node_modules/postcss/package.json
at exportsNotFound (node:internal/modules/esm/resolve:303:10)
at packageExportsResolve (node:internal/modules/esm/resolve:650:9)
at resolveExports (node:internal/modules/cjs/loader:591:36)
at Module._findPath (node:internal/modules/cjs/loader:668:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:1130:27)
at Module._load (node:internal/modules/cjs/loader:985:27)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at Object.<anonymous> (/path/to/polar/node_modules/postcss-safe-parser/lib/safe-parser.js:1:17)
at Module._compile (node:internal/modules/cjs/loader:1376:14) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
Node.js v21.2.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
To Reproduce
Run Artix/Arch Linux (via VirtualBox, Qemu, Docker, Podman, or any virtualization technology).
Yes, this happens on the latest versions of NodeJS. Unfortunately, you have to use the outdated node v16 to run it in dev mode. This is something that I really need to fix asap since v16 is now EOL.
uwla
changed the title
Bug: yarn package and yarn dev fails in Artix Linux
Bug: yarn package and yarn dev fails on latest versions of Nodejs
Dec 28, 2023
Describe the bug
The npm scripts
package
anddev
fails in Artix/Arch Linux in a fresh installation of Polar.To Reproduce
yarn
yarn package
oryarn dev
. It failsExpected behavior
The commands
yarn package
andyarn dev
should run successfully in a fresh installation in Artix/Arch Linux.Desktop (please complete the following information):
Additional context
I'm trying to set up local environment for development. I want to contribute to polar, but can't get it to run.
The text was updated successfully, but these errors were encountered: