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]: Build Compile Warning #3859

Open
tongSir-shuai opened this issue Oct 29, 2024 · 5 comments
Open

[Bug]: Build Compile Warning #3859

tongSir-shuai opened this issue Oct 29, 2024 · 5 comments
Labels
🐞 bug Something isn't working

Comments

@tongSir-shuai
Copy link

Version

System:
OS: macOS 15.0
CPU: (8) arm64 Apple M1 Pro
Memory: 71.88 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Browsers:
Chrome: 130.0.6723.70
Safari: 18.0
npmPackages:
@rsbuild/core: ^1.0.1-beta.6 => 1.0.18
@rsbuild/plugin-sass: ^1.0.1-beta.6 => 1.0.4
@rsbuild/plugin-vue2: ^1.0.1-beta.6 => 1.0.1

Details

Image
Image
warn Compile Warning:
⚠ Unsupported pseudo class or element: export at static/css/index.bf08089e.css:15180:2

⚠ Unsupported pseudo class or element: export at static/css/index.bf08089e.css:15477:2

⚠ Unsupported pseudo class or element: export at static/css/index.bf08089e.css:16604:19

File: /Users/tonghao/Documents/GitHub/abroad_advertise_view/src/views/material/components/index.css:1:1
⚠ ModuleWarning: resolve-url-loader: webpack misconfiguration
│ webpack or the upstream loader did not supply a source-map (from: /Users/tonghao/Documents/GitHub/abroad_advertise_view/node_modules/@[email protected]@@rsbuild/plugin-sass/compiled/resolve-url-loader/index.js??clonedRuleSet-22.use[4])
│ at encodeError (/Users/tonghao/Documents/GitHub/abroad_advertise_view/node_modules/
@[email protected]@@rsbuild/plugin-sass/compiled/resolve-url-loader/index.js:910:18)
│ at handleAsWarning (/Users/tonghao/Documents/GitHub/abroad_advertise_view/node_modules/@[email protected]@@rsbuild/plugin-sass/compiled/resolve-url-loader/index.js:901:32)
│ at Object.resolveUrlLoader (/Users/tonghao/Documents/GitHub/abroad_advertise_view/node_modules/
@[email protected]@@rsbuild/plugin-sass/compiled/resolve-url-loader/index.js:847:11)
│ at LOADER_EXECUTION (/Users/tonghao/Documents/GitHub/abroad_advertise_view/node_modules/@[email protected]@@rspack/core/dist/index.js:10363:18)
│ at runSyncOrAsync2 (/Users/tonghao/Documents/GitHub/abroad_advertise_view/node_modules/
@[email protected]@@rspack/core/dist/index.js:10364:6)
│ at node:internal/util:364:7
│ at new Promise ()
│ at runSyncOrAsync2 (node:internal/util:350:12)
│ at runLoaders (/Users/tonghao/Documents/GitHub/abroad_advertise_view/node_modules/_@[email protected]@@rspack/core/dist/index.js:10833:54)

Reproduce link

https://gitee.com/An_ordinary_day/rspack.git

Reproduce Steps

npm i && npm dev

@tongSir-shuai tongSir-shuai added the 🐞 bug Something isn't working label Oct 29, 2024
@9aoy
Copy link
Collaborator

9aoy commented Oct 31, 2024

This problem cannot be reproduced through the repository you provided. It seems that the rsbuild configuration is different.

Image

@tongSir-shuai
Copy link
Author

h

This problem cannot be reproduced through the repository you provided. It seems that the rsbuild configuration is different.

Image

Thank you, I have solved this problem. Now I have a new problem. The S3Plugin plugin does not perform upload during the build process. Can you please help me check whether my way of registering the plugin is wrong, or is S3 upload not supported yet?
Image

@9aoy
Copy link
Collaborator

9aoy commented Oct 31, 2024

s3Plugin can get the files, so it doesn't seem to be a build problem.

https://github.com/MikaAK/s3-plugin-webpack/blob/master/src/s3_plugin.js#L127

Image

@tongSir-shuai
Copy link
Author

s3Plugin can get the files, so it doesn't seem to be a build problem.

https://github.com/MikaAK/s3-plugin-webpack/blob/master/src/s3_plugin.js#L127

Image

Image
This is the packaged index.html file, but when I visit the address https://material.kwmobi.com/advertise_frontend_prod/dist/public/static/js/2254.3a4032e5.js, there is no data, and no related files are found in the AWS backend. What is the reason?

@tongSir-shuai
Copy link
Author

Is it true that the upload will not be executed in a non-webpack build environment? Because I can successfully upload it when I build in a webpack environment

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

No branches or pull requests

2 participants