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 Report: Critical Dependency Warnings During Build #28

Open
1 task
ianbuchanan42 opened this issue Jan 3, 2025 · 0 comments
Open
1 task

Bug Report: Critical Dependency Warnings During Build #28

ianbuchanan42 opened this issue Jan 3, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@ianbuchanan42
Copy link
Collaborator

Description

Does not seem to impact the extension functionality, but may cause issues down the road for iteration.

Environment:

Webpack Version: 5.97.1
Relevant Package: cosmiconfig, puppeteer, typescript
Command Run: npm run build
Observed Behavior: The following warnings were observed during the build process:

Critical dependency: the request of a dependency is an expression

File: ./node_modules/cosmiconfig/dist/loaders.js (Line: 23:22-34)
Trace:
scss
Copy code
./node_modules/cosmiconfig/dist/defaults.js (Line: 4:18-38)
./node_modules/cosmiconfig/dist/index.js (Line: 4:19-40)
./node_modules/puppeteer/lib/cjs/puppeteer/getConfiguration.js (Line: 11:22-44)
./node_modules/puppeteer/lib/cjs/puppeteer/puppeteer.js (Line: 47:30-62)
./src/commands/A11yTreeCommands.ts (Line: 48:31-51)
./src/extension.ts (Line: 56:43-81)
Critical dependency: the request of a dependency is an expression

File: ./node_modules/import-fresh/index.js (Line: 32:31-48)
Trace:
scss
Copy code
./node_modules/cosmiconfig/dist/loaders.js (Line: 15:22-45)
./node_modules/cosmiconfig/dist/defaults.js (Line: 4:18-38)
./node_modules/cosmiconfig/dist/index.js (Line: 4:19-40)
./node_modules/puppeteer/lib/cjs/puppeteer/getConfiguration.js (Line: 11:22-44)
./node_modules/puppeteer/lib/cjs/puppeteer/puppeteer.js (Line: 47:30-62)
./src/commands/A11yTreeCommands.ts (Line: 48:31-51)
./src/extension.ts (Line: 56:43-81)
Critical dependency: the request of a dependency is an expression

File: ./node_modules/typescript/lib/typescript.js (Line: 8386:27-46)
Trace:
scss
Copy code
./node_modules/cosmiconfig/dist/loaders.js (Lines: 74:21-42, 103:28-48)
./node_modules/cosmiconfig/dist/defaults.js (Line: 4:18-38)
./node_modules/cosmiconfig/dist/index.js (Line: 4:19-40)
./node_modules/puppeteer/lib/cjs/puppeteer/getConfiguration.js (Line: 11:22-44)
./node_modules/puppeteer/lib/cjs/puppeteer/puppeteer.js (Line: 47:30-62)
./src/commands/A11yTreeCommands.ts (Line: 48:31-51)
./src/extension.ts (Line: 56:43-81)
Summary: Three warnings about critical dependencies appear, all related to dynamic imports or expressions in cosmiconfig or related dependencies.

Additional Details:

Compilation Status: Completed with warnings.
Error Details Flag: The message suggests enabling stats.errorDetails: true or --stats-error-details for more context.
Execution Time: 7898 ms

Reproduction

present in all branches

System information

npm run build

Additional information

No response

👨‍👧‍👦 Contributing

  • 🙋‍♂️ Yes, I'd love to make a PR to fix this bug!
@ianbuchanan42 ianbuchanan42 added the bug Something isn't working label Jan 3, 2025
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

1 participant