Comments (14)
I had the same problem. setting an alias on webpack.config.js
like @wagnermoschini solve the problem
module.exports = {
...
resolve: {
alias: {
"react/lib/DOMProperty": "react-dom/lib/DOMProperty"
}
}
};
from react-html-email.
In Webpack you can use this webpack.config.js
as hotfix
var config = {
resolve: {
alias: {
"react/lib/DOMProperty": "react-dom/lib/DOMProperty"
}
}
};
export default config;
from react-html-email.
I had the same problem, setting an alias on webpack.config.js
works fine!
from react-html-email.
Thumbs up – looks like this used some private API stuff in react which now exists in react-dom
. However, it appears to look for react-dom
first and check for the api.
require('react-dom');
// ensure base DOM properties are already injected
// FIXME: implement without relying on unstable import locations
var DOMProperty = undefined;
try {
exports._DOMProperty = DOMProperty = require('react-dom/lib/DOMProperty');
} catch (e) {
exports._DOMProperty = DOMProperty = require('react/lib/DOMProperty');
}
from react-html-email.
Seems like this could be pull requested from: https://github.com/gabriprat/react-html-email
from react-html-email.
Just released v2.0.0 which drops support for older versions of React and should no longer have this issue.
from react-html-email.
I have same issue on different project. After update i have same issue. I also never change to code...
Im using "react-dom": "^15.0.0", "react-html-email": "^1.1.3", "react": "^15.0.0"
from react-html-email.
@mfeuermann hi 5 man. However the code still works though
from react-html-email.
Yes but im using Meteor.js and there is problem with building of application with this kind of warning message...
from react-html-email.
I'm having this too, also using Meteor.js.
from react-html-email.
Same here. Can't build project, although I don't use Meteor
using:
react and react-dom 15.4.0
babel-preset-react 6.16.0
babel-core 6.18.2
babel-loader-6.2.8
webpack 1.13.3
webpack-dev-server 1.16.2
and other less important stuff...
from react-html-email.
basically what is happening is because React 15.4.0 removed ReactInjection.js file. Hence this library broke
from react-html-email.
Webpack alias works! Thank you.
from react-html-email.
Hi all, I am working on a fix to this issue. The require('react/lib/DOMProperty')
exists to support versions of React prior to 15.4.0. I did not anticipate this library would be built by a bundler such as webpack, which will attempt to resolve and bundle both modules. In the mean time, I think the webpack alias shared by @Poky85 should work.
from react-html-email.
Related Issues (20)
- Row & Column components HOT 3
- Warnings log even though warn is set to false HOT 3
- Your kitchenSink.jsx doesn't work, should it? HOT 1
- unsupported props warning even when downgrading to 1.2.0 HOT 2
- Webpack build error HOT 2
- Can't build with webpack 3.10 HOT 2
- react-html-email fails to compile when building HOT 11
- is there a full example HOT 2
- Can I use it for server-side-rendering? HOT 1
- Using a number for width and height doesn't give us responsive images
- Are there tests validating cross-client compatibility? HOT 1
- Setting multiple <style> blocks
- Test with enzyme: mount
- Span component does not inherit className prop HOT 1
- [BUG] Default example kitchenSink.jsx does not display well in default Galaxy S6 email client. HOT 2
- [SOLVED] Layout issue - <Box> won't center HOT 1
- Email shows all the html tags and etc HOT 1
- TypeError: Cannot read property 'getCurrentStack' of undefined HOT 1
- Where do static files end up?
- Can I use react-bootstrap with this package?
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-html-email.