Comments (1)
I tested myself and i got it working after some extra steps:
When installing u get some errors:
Could not resolve dependency:
npm ERR! peer react@"^16.13.1" from @blocks/[email protected]
By doing --legacy-peer-deps still works/installs.
To get work in webpack 5+ (webpack 5 has no polyfill anymore)i needed to change my webpack.config.js
Adding this to plugins []
new webpack.ProvidePlugin({
Buffer: ['buffer', 'Buffer'],
}),
new webpack.DefinePlugin({
process: {env: {}}
}),
And this for the resolve []
fallback: {
"fs": false,
"tls": false,
"net": false,
"http": require.resolve("stream-http"),
"https": false,
"zlib": require.resolve("browserify-zlib") ,
"path": require.resolve("path-browserify"),
"stream": require.resolve("stream-browserify"),
"util": require.resolve("util/"),
"crypto": require.resolve("crypto-browserify"),
"buffer": require.resolve("buffer")
}
And added this to my project: (Problem webpack5+; undefined process fix)
https://stackoverflow.com/questions/70368760/react-uncaught-referenceerror-process-is-not-defined
"dependencies": {
"buffer": "^6.0.3",
}
....
"devDependencies": {
"process": "^0.11.10",
"react-error-overlay": "^6.0.9" //important see stack overflow link
}
And then it should working on react 18+ and webpack 5+
from blocks.
Related Issues (20)
- MDX Support
- Persist the component in the sidebar when it's dragged on the canvas
- Font size set to "auto" can't be reset to "auto"
- When you set a font size on a parent child, and one of its children has a font size set, it's confusing when its font size doesn't change
- Automatically show a warning when contrast doesn't meet a proper WCAG ratio for a11y
- Add an editor for psuedo-states/elements like hover
- Is there roadmap or development plan for the project? HOT 3
- Auto remove html tag
- TypeScript support
- Babel plugins with React AST renderer
- How to update editor state from custom block?
- Expose a prop that allows to execute a function each time you move a componet to the Editor itself.
- Is this project abandoned? HOT 7
- any plans on migrating to support typescript?
- failing HOT 1
- Dependency Dashboard
- What do you all think of this idea?
- How do i render the output?
- Alternatives? HOT 6
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 blocks.