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

The application runs incorrectly at the second packaging #554

Open
duwenbin0316 opened this issue Apr 26, 2023 · 1 comment
Open

The application runs incorrectly at the second packaging #554

duwenbin0316 opened this issue Apr 26, 2023 · 1 comment

Comments

@duwenbin0316
Copy link

duwenbin0316 commented Apr 26, 2023

import Rate from './antd-mobile/es/components/rate'

console.log(Rate)

Expected Behavior

application runs correctly,The console displays the Rate

Actual Behavior

run webpakc build, at the second time the console displays the Rate is undefined, otherwise, it works correctly

Is an error being thrown?

no

Steps to Reproduce

Here is a demo that reproduces the problem : https://github.com/duwenbin0316/hard-source-cache-error

Operating System, Node, and NPM dependency versions

Mac OS 13.1
Node 16.14.2

  "dependencies": {
    "antd-mobile": "^5.29.1",
    "css-loader": "^2.1.1",
    "hard-source-webpack-plugin": "^0.13.1",
    "html-webpack-plugin": "^4.5.2",
    "uglifyjs-webpack-plugin": "^2.2.0",
    "webpack": "^4.46.0",
    "webpack-cli": "^4.10.0"
  }
@duwenbin0316 duwenbin0316 changed the title The application runs incorrectly after the second packaging The application runs incorrectly at the second packaging Apr 26, 2023
@duwenbin0316
Copy link
Author

duwenbin0316 commented Apr 26, 2023

I analyzed the characteristics of the project and it may be related to the sideEffects configuration. If I delete this configuration, this problem will not occur

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

No branches or pull requests

1 participant