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

fix: nextjs esm #2666

Merged
merged 1 commit into from
Aug 26, 2024
Merged

fix: nextjs esm #2666

merged 1 commit into from
Aug 26, 2024

Conversation

lxfu1
Copy link
Member

@lxfu1 lxfu1 commented Aug 26, 2024

close #2489

const nextConfig = {
  experimental: {
    esmExternals: 'loose'
  }
};

Copy link

socket-security bot commented Aug 26, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@ant-design/[email protected] Transitive: environment, eval, filesystem, network, shell +180 39.1 MB kn9117
npm/[email protected] None 0 8.38 kB keyanzhang
npm/[email protected] None 0 112 kB atool
npm/[email protected] None 0 61.3 kB atool
npm/[email protected] None 0 184 kB simenb
npm/[email protected] None 0 5.73 kB atool
npm/[email protected] None 0 4.34 kB simenb
npm/[email protected] None 0 33.3 kB evilebottnawi
npm/[email protected] environment Transitive: filesystem +1 90.2 kB agatronic
npm/[email protected] eval, filesystem +1 3.64 MB matthew-dean
npm/[email protected] None 0 1.41 MB bnjmnt4n
npm/[email protected] None 0 76 kB sindresorhus
npm/[email protected] environment, filesystem, unsafe 0 11.2 MB prettier-bot
npm/[email protected] filesystem Transitive: environment +3 134 kB jounqin
npm/[email protected] Transitive: environment, filesystem +8 352 kB iansu
npm/[email protected] None 0 14.7 kB wooorm
npm/[email protected] None 0 16.8 kB wooorm
npm/[email protected] None 0 21.7 kB wooorm
npm/[email protected] None 0 83.5 kB evilebottnawi
npm/[email protected] filesystem +1 30.6 kB wooorm
npm/[email protected] None 0 66.8 MB typescript-bot
npm/[email protected] None +1 109 kB wooorm
npm/[email protected] None 0 21.5 kB wooorm
npm/[email protected] environment, filesystem, network +1 1.24 MB valscion
npm/[email protected] environment, filesystem 0 109 kB evilebottnawi
npm/[email protected] environment, eval, network 0 634 kB evilebottnawi
npm/[email protected] Transitive: environment, filesystem +4 5.39 MB evilebottnawi, jhnns, sokra, ...1 more
npm/[email protected] network 0 57.4 kB jakechampion
npm/[email protected] environment, filesystem 0 21.6 kB yyx990803

View full report↗︎

Copy link

socket-security bot commented Aug 26, 2024

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSourceCI
Install scripts npm/[email protected]
  • Install script: install
  • Source: node bin/install.js
🚫

View full report↗︎

Next steps

What is an install script?

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/[email protected] or ignore all packages with @SocketSecurity ignore-all

@lxfu1 lxfu1 merged commit 713d127 into v2 Aug 26, 2024
7 of 8 checks passed
@lxfu1 lxfu1 deleted the fix/nextjs-esm branch August 26, 2024 13:25
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

Successfully merging this pull request may close these issues.

🧐[问题]ESM packages (lodash-es) need to be imported.
1 participant