Open rtritto opened 2 days ago
Encore's dependency resolver currently requires node_modules
. We have looked into supporting pnp but it's not a high priority at the moment. Last time I looked the format is not very well documented so building tooling to support it is relatively difficult.
FYI @arcanis @merceyz
Or are you saying you are using yarn's node_modules
mode? That should definitely work.
Or are you saying you are using yarn's
node_modules
mode? That should definitely work.
No, I'm using Plug'n'Play instead of _nodemodules:
.yarnrc.yml
nodeLinker: pnp
Maybe encore.exe
point to C:\Users\<USER>\.encore\runtimes\js\encore.dev\package.json
instead of package.json of the project (where I run encore run
and where there is encore.app
file).
Why encore.dev
dependency is duplicated in C:\Users\<USER>\.encore\runtimes\js
? encore.dev
dependency is already installed in the project (package.json).
Reproduction
Caused by: 0: setup dependencies 1: yarn install failed 2: program not found
Stack backtrace: 0: anyhow::backtrace::capture::Backtrace::capture 1:::setup_deps
2: scoped_tls::ScopedKey::set
3: tsparser_encore::main
4: std::sys_common::backtrace::__rust_begin_short_backtrace
5: main
6: __tmainCRTStartup
7: mainCRTStartup
8:
9:
Info
OS: Windows 11 Node: v22 encore.dev: v1.44.6 (same behavior with v1.44.5) encode installed v1.44.5 yarn berry with PnP (Plug'n'Play)