-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
- P2: has workaroundBug, but has workaround (priority)Bug, but has workaround (priority)
Description
What version of astro
are you using?
1.4.0
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
yarn
What operating system are you using?
Mac
Describe the Bug
Using yarn dlx (the yarn modern version of yarn/create) leads to a package installation error:
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed in 1s 365ms
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed
➤ YN0000: ┌ Link step
➤ YN0000: │ ESM support for PnP uses the experimental loader API and is therefore experimental
➤ YN0000: └ Completed
➤ YN0000: Done with warnings in 1s 539ms
/private/var/folders/2t/t4byzhn576n41yk4yqzx3tsw0000gn/T/xfs-6b77a3cd/dlx-26562/.pnp.cjs:9004
return Object.defineProperties(new Error(message), {
^
Error: chalk tried to access #ansi-styles, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.
Required package: #ansi-styles (via "#ansi-styles/package.json")
Required by: chalk@npm:5.0.1 (via /Users/nick/.yarn/berry/cache/chalk-npm-5.0.1-6afcb94227-8.zip/node_modules/chalk/source/index.js)
at makeError (/private/var/folders/2t/t4byzhn576n41yk4yqzx3tsw0000gn/T/xfs-6b77a3cd/dlx-26562/.pnp.cjs:9004:34)
at resolveToUnqualified (/private/var/folders/2t/t4byzhn576n41yk4yqzx3tsw0000gn/T/xfs-6b77a3cd/dlx-26562/.pnp.cjs:9923:21)
at Object.resolveToUnqualified (/private/var/folders/2t/t4byzhn576n41yk4yqzx3tsw0000gn/T/xfs-6b77a3cd/dlx-26562/.pnp.cjs:10067:26)
at resolve$1 (file:///private/var/folders/2t/t4byzhn576n41yk4yqzx3tsw0000gn/T/xfs-6b77a3cd/dlx-26562/.pnp.loader.mjs:224:31)
at nextResolve (node:internal/modules/esm/loader:163:28)
at ESMLoader.resolve (node:internal/modules/esm/loader:837:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:40)
at link (node:internal/modules/esm/module_job:75:36)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Node.js v18.10.0
Link to Minimal Reproducible Example
yarn dlx create-astro
Participation
- I am willing to submit a pull request for this issue.
Workaround
Create the project with yarn create
and then upgrade to yarn modern with yarn set version stable
.
Metadata
Metadata
Assignees
Labels
- P2: has workaroundBug, but has workaround (priority)Bug, but has workaround (priority)