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]: @rsbuild/[email protected] - TypeError: Cannot destructure property 'distPath' of 'environment' as it is undefined. #2897

Closed
Kotpes opened this issue Jul 12, 2024 · 2 comments · Fixed by #2902
Labels
bug Something isn't working

Comments

@Kotpes
Copy link

Kotpes commented Jul 12, 2024

Version

System:
    OS: macOS 14.5
    CPU: (14) arm64 Apple M3 Max
    Memory: 118.88 MB / 36.00 GB
    Shell: 5.9 - /bin/zsh
  Browsers:
    Chrome: 126.0.6478.127
    Safari: 17.5
  npmPackages:
    @rsbuild/core: 0.7.10 => 0.7.10 
    @rsbuild/plugin-eslint: 1.0.0 => 1.0.0 
    @rsbuild/plugin-react: 0.7.10 => 0.7.10

Details

Latest v1.0.0 of @rsbuild/plugin-eslint causes build to fail with:

error   Failed to build.
error   TypeError: Cannot destructure property 'distPath' of 'environment' as it is undefined.

Works as before with 0.7.10

Reproduce link

don't have a public repo, but should be pretty straightforward to reproduce

Reproduce Steps

rsbuild build

@Kotpes Kotpes added the bug Something isn't working label Jul 12, 2024
@chenjiahan
Copy link
Member

Please use @rsbuild/core 1.0.0-alpha when using @rsbuild/plugin-eslint 1.0.0

image

https://github.com/rspack-contrib/rsbuild-plugin-eslint/blob/d72e7f28a0f1d5161399ac39255063a1b010c208/package.json#L53

@millievn
Copy link

corev1.0.0 still has this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants