Comments (2)
Issue: #26838
Hi @Kingrashy12 ,
I believe I have found a solution to the issue you're experiencing. From the error message you posted, it looks like there is a problem with importing a module from a relative path in your node_modules directory.
To solve this issue, I would recommend trying the following steps:
Ensure that the node_modules directory is excluded from your webpack configuration. This can be done by adding the following to your webpack.config.js file:
module.exports = {
//...
externals: {
'node_modules': 'commonjs node_modules',
},
};
Ensure that the module you are importing is marked as an external dependency in your webpack configuration. You can do this by adding the following to your webpack.config.js file:
module.exports = {
//...
externals: {
'my-module': 'commonjs my-module',
},
};
In this example, my-module should be replaced with the name of the module you are trying to import.
Ensure that the module you are importing has been installed in your project's node_modules directory. If it has not been installed, you can install it by running the following command:
npm install my-module --save
Ensure thatthe module you are importing has been correctly exported in its index.js file. You can check this by navigating to the node_modules/my-module directory and checking that the index.js file exports the correct functions or objects.
If these steps do not solve the issue, there may be a problem with the module itself. In this case, I would recommend checking the module's GitHub repository or contacting the module's maintainer for support.
I hope this helps! Let me know if you have any further questions or if there's anything else I can do to assist.
Best regards,
from react.
issues not solved
from react.
Related Issues (20)
- [DevTools Bug]: React devtool is not there in codesandbox HOT 1
- Feature request: context propagation throughout component tree without Context API or prop drilling (like Vue's provide/inject API) HOT 10
- Bug: Streaming Hydration fails when promise is created within a suspense-wrapped component
- [DevTools Bug]: footer next button hover Ui issues HOT 1
- [DevTools Bug] getCommitTree(): Invalid commit "13" for root "1". There are only "7" commits. HOT 1
- [DevTools Feature Request]: Full support for RSC server elements (component tree, props, inspect)
- [DevTools Bug]: Cannot read properties of undefined (reading 'toLowerCase') HOT 2
- Bug: test HOT 1
- [DevTools Bug]: Extension breaks PRTG web interface HOT 2
- A lengthy task in a resource-intensive application.
- Bug: Codeblocks are going over the normal width of the content , which seems really off HOT 1
- Add `x_google_ignoreList` (Ignore-listing code) support to sourcemaps HOT 2
- Bug: useRef on react-test-renderer wont work HOT 1
- Bug: NOTHING BIG
- Bug: putting promise into JSX will cause hydration issue HOT 9
- Bug: Pressing `enter` on an input to submit the form submits the first button instead of the form itself (With Actions) HOT 5
- [DevTools Bug] Cannot remove node "434" because no matching node was found in the Store. HOT 1
- Bug: 40k modules in npm, fix that. PLEASE!!!!!
- [DevTools Bug]: Recent version broke modal in chrome browser HOT 1
- Bug: Uncaught TypeError: Cannot read properties of null (reading 'useContext') when importing react-router-dom HOT 24
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react.