-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Can't resolve node:os / node:process modules in React application #28940
Comments
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @avanigupta @shenmuxiaosen. |
@paulsmithkc can you share some details about the bundler you are using and how you are configuring it? My guess is that your bundler is not looking at the
@mpodwysocki @timovv - perhaps we should bring back the top-level browser key to point to |
Hi @paulsmithkc. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue. |
|
@paulsmithkc Thanks for the information. While we look into our options, you may wish to upgrade to Webpack 5: https://webpack.js.org/blog/2020-10-10-webpack-5-release/ It appears that react-scripts has been on Webpack 5 since their last release 2 years ago: https://www.npmjs.com/package/react-scripts |
Well I have some updates:
|
Same issue for node version: 20.9.0. |
The same issue we've got today. Node 16.
|
Problem could be in @azure/[email protected]
|
@xirzec look i think problem in @azure/logger For me in this file @azure/logger/dist/commonjs/log.js My case: i use @azure/storage-blob and this package use logger.
Can we fix it, and don't change script version? |
Use exact version number: |
@junru071120 i don't use @azure/logger this package use @azure/storage-blob |
Can you provide a repro / additional details for node 20? |
@paulsmithkc I'm a bit confused about the scenario of upgrading your dependencies for Azure SDKs, but not any of your other dependencies? Why not simply freeze all of your dependencies with a lockfile? And it's somehow cheaper to hand-write your REST calls than updating to a secure version of node? |
@xirzec We were using both In effect they were bloating up the website which code that ended up being largely unused. As such, it was much more practical & efficient for us to replace them with direct HTTP requests to Azure. This issue was prevent our whole website from building. So we needed a quick fix, that would allow us to gradually update components. Updating CRA/Webpack requires a lot more regression testing, and updates in other areas that aren't compatible with Webpack 5. (One example being that jsonwebtoken is not compatible with Webpack 5, so we'll need to swap over to jose before we can update the site.) Related API Docs |
Hi all, thanks for your patience as we investigate the issue. We are restoring the |
I've released the patches restoring the |
Hi @timovv, thanks for helping with this issue. I have try to build my code and the error has changed to: ERROR in ./node_modules/@azure/core-rest-pipeline/dist/browser/pipeline.js 10:14
| _orderedPolicies; There is a bunch of other errors and they all seem to be coming from "/node_modules/@azure/core-rest-pipeline/dist/browser" |
Hi @timovv, thanks for helping with this issue. |
### Packages impacted by this PR - Core packages using ESM migration ### Issues associated with this PR - #28940 - #28918 ### Describe the problem that is addressed by this PR Upgrade to new version of `tshy` which does not force `target` to `ES2022` (see [PR](isaacs/tshy#55)). This should resolve some issues for people whose environments do not support newer syntax (e.g. Node 14 and the Webpack 4 bundler).
We have now released a version of Core which is targeting the ES2017 syntax level. This should solve these final compatibility issues with Webpack 4. Please let us know if you encounter any more issues. |
Hi @timovv , thanks for fixing this issue. |
Describe the bug
When trying to start a react app that utilizes
@azure/app-configuration
we are seeing the following error at startup/build time:To Reproduce
Steps to reproduce the behavior:
@azure/app-configuration
package to fetch feature flags at runtime, using a connection string.npm start
Expected behavior
React app starts without issue.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Build was working up until yesterday, and then it started pulling in the node version of the apis instead of the browser versions.
The text was updated successfully, but these errors were encountered: