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

Next dev hot reload warnings #231

Open
NMVW opened this issue Jan 12, 2024 · 3 comments
Open

Next dev hot reload warnings #231

NMVW opened this issue Jan 12, 2024 · 3 comments

Comments

@NMVW
Copy link

NMVW commented Jan 12, 2024

When using next dev locally to develop, run into the following chatty warning (1000 warning logs per minute):

hot-dev-client.js:85 ./node_modules/fauna/dist/browser/index.js
Critical dependency: require function is used in a way in which dep endencies cannot be statically extracted
@ptpaterson
Copy link
Contributor

ptpaterson commented Jan 24, 2024

Thanks for reporting. We've created an internal issue to prioritize and track: FE-4891

The driver is designed to work in a lot of different environments and so we've done some dynamic importing to check for the existence of particular modules and only use them when available.

@ptpaterson
Copy link
Contributor

We have a similar report about these warnings, but also build errors this time

warn ./node_modules/fauna/dist/browser/index.js
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
warn ./node_modules/fauna/dist/browser/index.js
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
success Building production JavaScript and CSS bundles - 5.056s

 ERROR #98123  WEBPACK.BUILD-HTML

Generating SSR bundle failed

Reading from "node:http2" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.

File: node:http2


 ERROR #98123  WEBPACK.BUILD-HTML

Generating SSR bundle failed

Reading from "node:os" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.

File: node:os

not finished Building HTML renderer - 3.400s


"build.command" failed

@NMVW
Copy link
Author

NMVW commented Apr 23, 2024

Thanks for reporting. We've created an internal issue to prioritize and track: FE-4891

The driver is designed to work in a lot of different environments and so we've done some dynamic importing to check for the existence of particular modules and only use them when available.

Any updates on this issue? Our dev times are skyrocketing now (up to 15-30 second reloads for a single module source code update) slowing down our product dev flows

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

2 participants