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

[Bug]: resolve.modules is invalid #9358

Open
zhaoyx18 opened this issue Feb 18, 2025 · 1 comment
Open

[Bug]: resolve.modules is invalid #9358

zhaoyx18 opened this issue Feb 18, 2025 · 1 comment

Comments

@zhaoyx18
Copy link

zhaoyx18 commented Feb 18, 2025

配置如下:

const { defineConfig } = require('@rsbuild/core');
const path = require('path');

module.exports = defineConfig({
  resolve: {
    preferRelative: true,
    alias: {
      '@': path.resolve(__dirname, './src'),
    },
    modules: [path.resolve(__dirname, 'src'), 'node_modules'],
  },
});

Image

可以确定目录是src/pages/not-found
@rsbuild/core 版本1.2.4

@zhaoyx18 zhaoyx18 added the tracking issue Category: A tracking issue for an RFC or an unstable feature. label Feb 18, 2025
@chenjiahan chenjiahan changed the title [Tracking]: resolve.modules 无效 [Tracking]: resolve.modules is invalid Feb 18, 2025
@chenjiahan chenjiahan added need reproduction and removed tracking issue Category: A tracking issue for an RFC or an unstable feature. labels Feb 18, 2025
@chenjiahan chenjiahan changed the title [Tracking]: resolve.modules is invalid [Bug]: resolve.modules is invalid Feb 18, 2025
Copy link
Contributor

Hello @zhaoyx18, sorry we can't investigate the problem further without reproduction demo, please provide a repro demo by forking rspack-repro, or provide a minimal GitHub repository by yourself. Issues labeled by need reproduction will be closed if no activities in 14 days.

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

No branches or pull requests

2 participants