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

[build] TypeScript environment somehow changed, TypeScript target failing #3882

Closed
kaby76 opened this issue Dec 11, 2023 · 1 comment
Closed

Comments

@kaby76
Copy link
Contributor

kaby76 commented Dec 11, 2023

Builds for testing the TypeScript target get the following error:

Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'C:\msys64\home\Kenne\issues\g4-3880\abb\Generated-TypeScript\abbLexer' imported from C:\msys64\home\Kenne\issues\g4-3880\abb\Generated-TypeScript\Test.js
Did you mean to import ../abbLexer.js?
    at finalizeResolution (node:internal/modules/esm/resolve:264:11)
    at moduleResolve (node:internal/modules/esm/resolve:917:10)
    at defaultResolve (node:internal/modules/esm/resolve:1130:11)
    at nextResolve (node:internal/modules/esm/hooks:749:28)
    at resolve (C:\Users\kenne\AppData\Roaming\npm\node_modules\ts-node\dist\child\child-loader.js:15:125)
    at nextResolve (node:internal/modules/esm/hooks:749:28)
    at Hooks.resolve (node:internal/modules/esm/hooks:237:30)
    at handleMessage (node:internal/modules/esm/worker:199:24)
    at checkForMessages (node:internal/modules/esm/worker:141:28)
    at process.<anonymous> (node:internal/modules/esm/worker:160:5) {
  code: 'ERR_MODULE_NOT_FOUND',
  url: 'file:///C:/msys64/home/Kenne/issues/g4-3880/abb/Generated-TypeScript/abbLexer'
}

Fortunately, the fix is easy. Change these lines to generate this:

import abbLexer from './abbLexer.js';
import abbParser from './abbParser.js';
@kaby76
Copy link
Contributor Author

kaby76 commented Dec 11, 2023

The Issue is fixed with PR #3883.

But, I am now interested in why the TypeScript environment suddenly failed.

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

No branches or pull requests

1 participant