question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Critical dependency for plugins in webpack

See original GitHub issue

node_modules/postcss-functions/dist/index.js Critical dependency: the request of a dependency is an expression

plugin = require('postcss').plugin
export default plugin('postcss-functions', (opts = {}) => {

for webpack and to run this in browser it needs to be a plain class/object/function.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
aicommented, Apr 10, 2018

Could you open a issue in https://github.com/andyjansson/postcss-functions

I have not access to that repo to fix error.

0reactions
pavelthqcommented, Apr 10, 2018

@ai I think there is no need to fix anything in postcss core 👍 , but in postcss-function there are options.glob:

functions[name] = require(file);

this cannot be bundled in webpack, and I don’t see any possibility to fix it without removing 😕

Read more comments on GitHub >

github_iconTop Results From Across the Web

Webpack Warning: Critical dependency: the request of a ...
[Edit: This seems to be related with WebPack in General, not with Angular] When activating this module in an Angular 12 project, this...
Read more >
webpack-plugin-critical - npm
Critical Webpack Plugin ... This is a webpack wrapper around Addy Osmani's critical library, which helps to inline minimum necessary CSS in HTML ......
Read more >
Webpack - Critical dependency: the request of a dependency ...
Solved with npm install request@2.79.0 --save. According to the authors of ajv , the issue will likely be resolved in the latest version...
Read more >
Dependency Management - webpack
You can create your own context with the require.context() function. It allows you to pass in a directory to search, a flag indicating...
Read more >
the request of a dependency is an expression webpack - You ...
Webpack - Critical dependency: the request of a dependency is an expression ... When a library uses variables or expressions in a require...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found