GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — esm: import.meta.resolve exact module not found errors should return by guybedford · Pull Request #49038 · nodejs/node

Conversation

@guybedford

@guybedford guybedford commented Aug 6, 2023

Copy link
Copy Markdown
Contributor

This resolves #49010, ensuring that not found errors to exact modules in import.meta.resolve still return the resolved string. Package not found errors remain module not found errors.

@nodejs/modules

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bricss, lin72h, and jimmywarting reacted with thumbs up emoji
All reactions
  • 👍 3 reactions
@guybedford
esm: import.meta.resolve exact module not found errors should return
adee9bd
@nodejs-github-bot

nodejs-github-bot commented Aug 6, 2023

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/loaders
  • @nodejs/modules
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot nodejs-github-bot added errors Issues and PRs related to JavaScript errors originating in Node.js core. esm Issues and PRs related to the ECMAScript Modules implementation. needs-ci PRs that need a full CI run. labels Aug 6, 2023
This was referenced Aug 6, 2023
esm: unflag import.meta.resolve #49028
Merged
import.meta.resolve non existing paths. #49010
Closed
GeoffreyBooth
GeoffreyBooth approved these changes Aug 6, 2023
View reviewed changes
hybrist
hybrist approved these changes Aug 6, 2023
View reviewed changes
@guybedford

guybedford commented Aug 6, 2023

Copy link
Copy Markdown
Contributor Author

@JakobJingleheimer wondering if you have any clues as to what might be up with this asan test failure here?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@JakobJingleheimer

JakobJingleheimer commented Aug 6, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Looking at the output, it seems all cases are reporting okay, which makes me think there's an async issue (something is not waiting as it should). No idea why this would be isolated to ASan.

The test output appears to stop on:

Loader hooks → should handle a throwing top-level body → should handle empty plain object

Perhaps error here is not defined (or worse, null):

node/lib/internal/modules/esm/initialize_import_meta.js

Line 22 in adee9bd

({ url } = error);

Ah, no, we know it's not because of switch (error?.code).

I would guess something is unexpectedly throwing, and that's getting swallowed (and ESM worker would be the most likely suspect for swallowing it as we experienced that A LOT during the off-thread PR).

I would still look here for the source of the unexpected throw

node/lib/internal/modules/esm/initialize_import_meta.js

Lines 22 to 25 in adee9bd

({ url } = error);
if (url) {
return url;
}
(and use that fs.writeSync trick to ensure debugging output actually happens).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@GeoffreyBooth

GeoffreyBooth commented Aug 6, 2023

Copy link
Copy Markdown
Member

Looking at the output, it seems all cases are reporting okay, which makes me think there’s an async issue (something is not waiting as it should). No idea why this would be isolated to ASan.

https://openjs-foundation.slack.com/archives/C053UCCP940/p1690842970936839:

is there a reason the ASan build failed in ^? it did error in one of the ESM loader tests… so maybe it’s related… but the output doesn’t seem to show why 🤔 maybe there’s some non-determinism involved?

From July 31, so this might’ve been introduced by one of the earlier recent loaders PRs. cc @izaakschroeder

JakobJingleheimer reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

aduh95
aduh95 reviewed Aug 7, 2023
View reviewed changes
Comment thread lib/internal/errors.js Resolved

Uh oh!

There was an error while loading. Please reload this page.

@guybedford
explicit url arg
e2f007b
GeoffreyBooth
GeoffreyBooth approved these changes Aug 7, 2023
View reviewed changes
aduh95
aduh95 reviewed Aug 7, 2023
View reviewed changes
Comment thread lib/internal/errors.js Resolved

Uh oh!

There was an error while loading. Please reload this page.

aduh95
aduh95 reviewed Aug 7, 2023
View reviewed changes
Comment thread lib/internal/modules/esm/resolve.js Resolved

Uh oh!

There was an error while loading. Please reload this page.

@guybedford
pr feedback
ebcde3d
aduh95
aduh95 approved these changes Aug 7, 2023
View reviewed changes
@jimmywarting jimmywarting mentioned this pull request Aug 8, 2023
esm: add import.meta.dirname and import.meta.filename #48740
Merged
VoltrexKeyva
VoltrexKeyva approved these changes Aug 9, 2023
View reviewed changes
JakobJingleheimer
JakobJingleheimer approved these changes Aug 9, 2023
View reviewed changes
@nodejs-github-bot

nodejs-github-bot commented Aug 10, 2023

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/53132/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot mentioned this pull request Aug 11, 2023
CI Reliability 2023-08-11 nodejs/reliability#634
Open
1 of 29 tasks
@nodejs-github-bot

nodejs-github-bot commented Aug 11, 2023

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/53178/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot

nodejs-github-bot commented Aug 11, 2023

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/53182/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot

nodejs-github-bot commented Aug 11, 2023

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/53192/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot

nodejs-github-bot commented Aug 11, 2023

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/53204/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot

nodejs-github-bot commented Aug 11, 2023

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/53211/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot

This comment was marked as duplicate.

Sign in to view
This was referenced Dec 17, 2025
Update @vitest/coverage-v8 4.0.15 → 4.0.16 (patch) guibranco/pull-request-ui#486
Merged
Update @vitest/coverage-v8 4.0.15 → 4.0.16 (patch) guibranco/clean-cv-maker#503
Merged
Update @vitest/coverage-v8 4.0.15 → 4.0.16 (patch) ApiBR/sports-agenda-ui#592
Merged
Update @vitest/coverage-v8 4.0.15 → 4.0.16 (patch) ApiBR/catalog#502
Merged
Bump @vitest/coverage-v8 from 4.0.15 to 4.0.16 GuilhermeStracini/guilhermestracini.github.io#326
Merged
Bump vitest from 4.0.15 to 4.0.16 GuilhermeStracini/guilhermestracini.github.io#327
Closed
This was referenced Jan 12, 2026
Bump vitest from 4.0.16 to 4.0.17 GuilhermeStracini/guilhermestracini.github.io#336
Closed
Bump @vitest/coverage-v8 from 4.0.16 to 4.0.17 GuilhermeStracini/guilhermestracini.github.io#337
Merged
Bump @vitest/coverage-v8 from 4.0.16 to 4.0.17 guibranco/pull-request-ui#499
Merged
Bump vitest from 4.0.16 to 4.0.17 guibranco/pull-request-ui#500
Closed
Update @vitest/coverage-v8 4.0.16 → 4.0.17 (patch) guibranco/clean-cv-maker#525
Merged
Update vitest 4.0.16 → 4.0.17 (patch) ApiBR/catalog#514
Closed
Update vitest 4.0.16 → 4.0.17 (patch) ApiBR/sports-agenda-ui#606
Closed
Update @vitest/coverage-v8 4.0.16 → 4.0.17 (patch) ApiBR/sports-agenda-ui#607
Merged
Update @vitest/coverage-v8 4.0.16 → 4.0.17 (patch) ApiBR/catalog#515
Merged
This was referenced Jan 23, 2026
Update vitest 4.0.17 → 4.0.18 (patch) ApiBR/catalog#522
Closed
Update vitest 4.0.17 → 4.0.18 (patch) ApiBR/sports-agenda-ui#613
Closed
Update vitest 4.0.17 → 4.0.18 (patch) guibranco/pull-request-ui#513
Closed
Update @vitest/coverage-v8 4.0.17 → 4.0.18 (patch) guibranco/clean-cv-maker#536
Merged
Update @vitest/coverage-v8 4.0.17 → 4.0.18 (patch) ApiBR/sports-agenda-ui#614
Closed
Update @vitest/coverage-v8 4.0.17 → 4.0.18 (patch) ApiBR/catalog#523
Closed
Update @vitest/coverage-v8 4.0.17 → 4.0.18 (patch) guibranco/pull-request-ui#514
Closed
Build(deps-dev): bump vitest from 4.0.17 to 4.0.18 ApiBR/catalog#526
Closed
Build(deps-dev): bump @vitest/coverage-v8 from 4.0.17 to 4.0.18 ApiBR/catalog#528
Merged
Bump @vitest/coverage-v8 from 4.0.17 to 4.0.18 ApiBR/sports-agenda-ui#619
Merged
Bump vitest from 4.0.17 to 4.0.18 ApiBR/sports-agenda-ui#620
Closed
Bump vitest from 4.0.17 to 4.0.18 GuilhermeStracini/guilhermestracini.github.io#346
Closed
Bump @vitest/coverage-v8 from 4.0.17 to 4.0.18 GuilhermeStracini/guilhermestracini.github.io#350
Merged
Bump @vitest/coverage-v8 from 4.0.17 to 4.0.18 guibranco/pull-request-ui#520
Merged
Bump vitest from 4.0.17 to 4.0.18 guibranco/pull-request-ui#519
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Qard Qard Qard left review comments
@aduh95 aduh95 aduh95 approved these changes
@GeoffreyBooth GeoffreyBooth GeoffreyBooth approved these changes
@hybrist hybrist hybrist approved these changes
@JakobJingleheimer JakobJingleheimer JakobJingleheimer approved these changes
+1 more reviewer
@VoltrexKeyva VoltrexKeyva VoltrexKeyva approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. commit-queue-squash PRs the Commit Queue should land as one squashed commit. errors Issues and PRs related to JavaScript errors originating in Node.js core. esm Issues and PRs related to the ECMAScript Modules implementation.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

import.meta.resolve non existing paths.

Uh oh!

There was an error while loading. Please reload this page.

10 participants

@guybedford @nodejs-github-bot @JakobJingleheimer @GeoffreyBooth @Qard @hybrist @aduh95 @VoltrexKeyva @targos @debadree25
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.