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

Cannot read properties of undefined (reading 'swc') #792

Closed
muratgozel opened this issue Jun 25, 2024 · 2 comments
Closed

Cannot read properties of undefined (reading 'swc') #792

muratgozel opened this issue Jun 25, 2024 · 2 comments

Comments

@muratgozel
Copy link

after updating

  • node from v20.5 to v20.9.0
  • @swc-node/register from 1.9.1 to 1.9.2
  • @swc/core from 1.5.24 to 1.6.5

i started to get the following error when i run:

node --env-file ./.env --watch --watch-path src --enable-source-maps --import @swc-node/register/esm-register src/index.ts
TypeError [Error]: Cannot read properties of undefined (reading 'swc')
    at load (/Users/muratgozel/workspace/gozel/monolith/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected]/node_modules/@swc-node/register/esm.mts:72:49)
    at nextLoad (node:internal/modules/esm/hooks:833:28)
    at Hooks.load (node:internal/modules/esm/hooks:416:26)
    at MessagePort.handleMessage (node:internal/modules/esm/worker:168:24)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:807:20)
    at exports.emitMessage (node:internal/per_context/messageport:23:28)
@yeliex
Copy link
Contributor

yeliex commented Jun 28, 2024

#779 should fixed this

@Brooooooklyn could you check and make a release?

@muratgozel
Copy link
Author

It's fixed in @swc-node/register:1.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants