Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pnpm workspaces + spack node_module resolution error #4443

Closed
hevans90 opened this issue Apr 26, 2022 · 4 comments
Closed

pnpm workspaces + spack node_module resolution error #4443

hevans90 opened this issue Apr 26, 2022 · 4 comments
Labels

Comments

@hevans90
Copy link

Describe the bug

I have a simple pnpm workspaces setup where I have a root package.json/pnpm-lock.yaml and a packages directory with some npm packages.

I wanted to try out swpack to bundle the code in one of my packages, and copied your example here: https://github.com/swc-project/cli/tree/master/examples/spack-basic

But this is what happens when I try it:

image

Here's my config, and proof there is an index.ts file at the root of the package:

image

Any ideas?

Input code

No response

Config

No response

Playground link

No response

Expected behavior

An outputted bundle.

Actual behavior

No response

Version

@swc/cli: 0.1.57 @swc/core: 1.2.172

Additional context

No response

@hevans90 hevans90 added the C-bug label Apr 26, 2022
@kwonoj
Copy link
Member

kwonoj commented Apr 26, 2022

Title is bit misleading #3247 is tracking. pnpm / or alternative pkg mgr resolution is not yet supported.

@kwonoj kwonoj closed this as completed Apr 26, 2022
@RiESAEX
Copy link
Contributor

RiESAEX commented Apr 26, 2022

I thought swc support pnpm after our module resolver follow soft links.

@kwonoj
Copy link
Member

kwonoj commented Apr 26, 2022

I thought swc support pnpm after our module resolver follow soft links.

I thought it's partially supported? like some cases it may not work and we don't guarantee pnpm resolution as officially supported.

@swc-bot
Copy link
Collaborator

swc-bot commented Oct 16, 2022

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@swc-project swc-project locked as resolved and limited conversation to collaborators Oct 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

4 participants