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

NextJs - Critical dependency: the request of a dependency is an expression #91

Closed
renegarcia225 opened this issue Oct 16, 2023 · 2 comments

Comments

@renegarcia225
Copy link

There's an error when trying to build a NextJS v13 project using @adzerk/decision-sdk 1.0.0-beta.25, it just says Critical dependency: the request of a dependency is an expression without any other description.

./node_modules/@adzerk/decision-sdk/lib/client.js
Critical dependency: the request of a dependency is an expression

Import trace for requested module:
./node_modules/@adzerk/decision-sdk/lib/client.js
./node_modules/@adzerk/decision-sdk/lib/index.js
@vkurup
Copy link
Contributor

vkurup commented Nov 8, 2023

With a test project using next.js 13.5.6 and decision sdk beta.25, we were not able to replicate the issue.

A quick google search shows that there seem to be similar issues with people using Next.js.

Some suggestions are:

  • Making sure all the dependencies are installed properly. Maybe remove node_modules folder and install the dependencies from scratch;
  • Removing adzerk decision sdk, and see if the project runs with just Next.js; and
  • Downgrade to beta.24 or beta.23 and see if the user gets the same error.

@vkurup vkurup closed this as completed Nov 8, 2023
@raulepq
Copy link

raulepq commented Nov 30, 2023

Hello I am working on Angular version 16.2.12 and using "@adzerk/decision-sdk": "1.0.0-beta.25" as a dependency, and I can also see the same error
./node_modules/@adzerk/decision-sdk/lib/client.js:448:18-35 - Warning: Critical dependency: the request of a dependency is an expression
open a new issue here #92

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

3 participants