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

resolve error when enable testcase webpack-test/configCases/inner-graph/basic #5554

Closed
IWANABETHATGUY opened this issue Feb 1, 2024 · 5 comments · Fixed by #7237
Closed
Assignees
Labels
A-resolver Area: resolver bug Something isn't working team The issue/pr is created by the member of Rspack.

Comments

@IWANABETHATGUY
Copy link
Contributor

System Info

not related

Details

    message =   × Failed to resolve loader: ../_helpers/testModuleLoader in  OxcResolver(NotFound(".....; formatted =   × Failed to resolve loader: ../_helpers/testModuleLoader in  OxcResolver(NotFound("...; 
moduleIdentifier = /xxxx/Documents/rspack/rspack/webpack-test/configCases/inner-graph/_hel...; moduleName = ../_helpers/entryLoader.js?{"usedExports":[],"expect":{"./assert":["equal"]},"name":...; modu
leId = 649; compilerPath = nothing without module concatenation

Reproduce link

current repo

Reproduce Steps

  1. remove webpack-test/configCases/inner-graph/basic/test.filter.js
  2. cd webpack-test
  3. pnpm test case -- -t inner-graph
@IWANABETHATGUY IWANABETHATGUY added bug Something isn't working pending triage The issue/PR is currently untouched. labels Feb 1, 2024
@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Feb 1, 2024
@jerrykingxyz jerrykingxyz added A-resolver Area: resolver and removed pending triage The issue/PR is currently untouched. labels Feb 19, 2024
@Boshen
Copy link
Contributor

Boshen commented Feb 19, 2024

Here's the error message in detail:

{
          message: '  × Failed to resolve loader: ../_helpers/testModuleLoader in  OxcResolver(NotFound("../_helpers/testModuleLoader"))\n',
          formatted: '  × Failed to resolve loader: ../_helpers/testModuleLoader in  OxcResolver(NotFound("../_helpers/testModuleLoader"))\n',
          moduleIdentifier: '/Users/bytedance/github/rspack/webpack-test/configCases/inner-graph/_helpers/entryLoader.js?{"usedExports":[],"expect":{"./assert":["equal"]},"name":"nothing"}!',
          moduleName: '../_helpers/entryLoader.js?{"usedExports":[],"expect":{"./assert":["equal"]},"name":"nothing"}!',
          moduleId: '228',
          compilerPath: 'nothing without module concatenation'
        },

Why is there a ! at the end of the filename? Resolver is not going to work with this !.

@Boshen Boshen assigned h-a-n-a and unassigned Boshen Feb 19, 2024
@h-a-n-a
Copy link
Collaborator

h-a-n-a commented Feb 19, 2024

Caused by #5393

@Boshen Boshen changed the title Oxc resolve error when enable testcase webpack-test/configCases/inner-graph/basic resolve error when enable testcase webpack-test/configCases/inner-graph/basic Mar 29, 2024
Copy link

stale bot commented May 28, 2024

This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

@stale stale bot added the stale label May 28, 2024
@h-a-n-a
Copy link
Collaborator

h-a-n-a commented Jun 18, 2024

bump

@h-a-n-a
Copy link
Collaborator

h-a-n-a commented Jun 27, 2024

Update: missing __webpack_exports_info__.usedExports support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-resolver Area: resolver bug Something isn't working team The issue/pr is created by the member of Rspack.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants