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

Possible regression after the latest release #2784

Closed
ia0 opened this issue Nov 9, 2023 · 3 comments · Fixed by #2786
Closed

Possible regression after the latest release #2784

ia0 opened this issue Nov 9, 2023 · 3 comments · Fixed by #2786
Labels

Comments

@ia0
Copy link

ia0 commented Nov 9, 2023

Bug description

The latest release broke my workflow. I suspect due to #2757.

Steps to reproduce

npm install --no-save assemblyscript
./node_modules/.bin/asc foo.ts
node:internal/errors:491
    ErrorCaptureStackTrace(err);
    ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '.../node_modules/assemblyscript/dist/asc.js' imported from .../node_modules/assemblyscript/bin/asc.js
    at __node_internal_captureLargerStackTrace (node:internal/errors:491:5)
    at new NodeError (node:internal/errors:400:5)
    at finalizeResolution (node:internal/modules/esm/resolve:326:11)
    at moduleResolve (node:internal/modules/esm/resolve:945:10)
    at defaultResolve (node:internal/modules/esm/resolve:1153:11)
    at nextResolve (node:internal/modules/esm/loader:163:28)
    at ESMLoader.resolve (node:internal/modules/esm/loader:842:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
    at ESMLoader.import (node:internal/modules/esm/loader:525:22)
    at importModuleDynamically (node:internal/modules/esm/translators:110:35)
    at importModuleDynamicallyCallback (node:internal/process/esm_loader:35:14)
    at file:///.../node_modules/assemblyscript/bin/asc.js:29:21
    at ModuleJob.run (node:internal/modules/esm/module_job:194:25) {
  code: 'ERR_MODULE_NOT_FOUND'
}

Node.js v18.13.0

AssemblyScript version

v0.27.16

@ia0 ia0 added the bug label Nov 9, 2023
@HerrCai0907
Copy link
Member

It is a publish issue. I will try to fix it

@ia0
Copy link
Author

ia0 commented Nov 9, 2023

Thanks for the quick response and looking into it!

I've fixed my system to be hermetic by using a specified version of AssemblyScript, so I'm not blocked.

@HerrCai0907 HerrCai0907 linked a pull request Nov 9, 2023 that will close this issue
@ia0
Copy link
Author

ia0 commented Nov 9, 2023

Thanks for the quick fix!

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

Successfully merging a pull request may close this issue.

2 participants