Comments (14)
Thanks for opening this issue @robmaas! Do you have a suggestion on what the fix would be?
from html-react-parser.
@remarkablemark not really, I'm not very familiar with ES exports etc.
I'll try to take a look at it in the next couple of days, bit I'm a bit busy so might take a while.
Since nobody reported this earlier I don't think a lot of people encounter this issue so might not have the highest priority.
from html-react-parser.
@robmaas Thanks for the update! I'll also try to see if I can reproduce this locally in my spare time.
from html-react-parser.
I encountered a Probably similar issue:
"Cannot read properties of undefined (reading 'default')"
I had to downgrade from version 4.2.5 to 4.2.1 (npm) for it to work again
from html-react-parser.
@MaxTwentythree That's probably an unrelated other issue. My original problem also occurs on 4.2.1
with the same error I described earlier. It's not the same error you're encountering.
from html-react-parser.
@MaxTwentythree Sorry for the delayed response, been very busy lately.
Will try to take a look at it soon, or ask one of my colleague's to do so.
from html-react-parser.
All good @robmaas, thanks for the update
from html-react-parser.
@robmaas: same :)
Should I open a new issue with the problem I'm encountering?
from html-react-parser.
@MaxTwentythree can you provide a reproducible example?
from html-react-parser.
Hi @remarkablemark, the issue is definitely related the exports
config introduced in #434
When removing the exports
config from package.json
the warnings dissapear even in 5.0.11 (which has a more advanced exports config).
I'm not very familiar with webpack and module exports etc. so it's a bit hard for me to understand what is really going on here.
I think this is somewhat related, because we do use moduleResolution: node
.
from html-react-parser.
@robmaas Thanks for the update. Unfortunately, I can't remove exports
from package.json
since it will break ESM support. I wonder if there's something that can be done on Webpack side.
from html-react-parser.
Related Issues (20)
- Migrate to TypeScript HOT 8
- limit parsing to N level of children HOT 5
- `parse` not not working with bulleted items HOT 4
- How to get the text from my html element with replace HOT 2
- Curly Brace Symbol Doesn't Show HOT 12
- Failed to parse source map from file HOT 1
- Vercel Edge not Supported HOT 2
- Type errors with v5.0.0 HOT 4
- version 5.0.1 cannot work with vite HOT 10
- Upgrading to latest version 5.0.3 throws compiling error: Can't reexport the named export 'Comment' from non EcmaScript module (only default export is available) HOT 8
- Nothing is parsed after an iframe HOT 2
- attributesToProps converts attribute with key name "open" always to value `true` HOT 2
- Warning with nextjs use - Extra attributes from the server HOT 3
- If the htmlString is dynamic and contains custom components (with hooks used), an error will be hanpend HOT 1
- missing type for domNode.children HOT 4
- Issue after 5.0.9 update HOT 3
- Cannot Handle Microsoft Meeting Link HOT 3
- Add Current Node Index in `replace` Callback HOT 6
- TS Error: This expression is not callable HOT 15
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 html-react-parser.