Comments (4)
Are you installing react-reveal
via NPM? You should install it like so:
npm install react-reveal --save
and if you need Fade
import it like this (from the docs)
import Fade from 'react-reveal/Fade';
It looks like what you're trying to do is to import it from source files which wouldn't work as you need the transpiled output.
from react-reveal.
Yes I am doing the same way. I shall try once again and update you.
from react-reveal.
Hmmm, if it's installed via npm then react-reveal
errors should generally come from node_modules
folder. I see that's not the case in here. Perhaps, you have some problem with your Babel configuration (say add-module-exports
is missing) ?
from react-reveal.
Following thing where added for these changes :
-
.bablerc
{
"presets": [
"react",
"es2015",
"stage-2"
],
"plugins": [
"add-module-exports",
"transform-runtime"
]
} -
webpack.config.js
loaders:[
{
test: /.js$/,
loader: 'babel-loader',
exclude: /node_modules/,
},
] -
npm install babel-plugin-transform-runtime babel-preset-es2015 babel-preset-stage-2 --save
-
npm i babel-plugin-add-module-exports babel-preset-es2015 babel-preset-stage-2 --save
Worked for me.
Cheers
from react-reveal.
Related Issues (20)
- Requires update to latest version of react
- Pls update React to 17, pls want your from one New Zealand Student HOT 1
- version conflict HOT 1
- I'm Getting This Error While Installing The React-Reveal And I'm Unable To Understand How To Solve It HOT 11
- Update to react 18.0
- This lib deserve a fork to resolve this problems...
- This need to be update to react ^18.2.0 HOT 2
- Causing problems while working with React Router
- Currently working on updating the package HOT 3
- Currently working on updating the package react updated version. HOT 1
- Fade not working on enter
- Integrate with Locomotivescroll
- Installing react-reveal HOT 5
- Scroll reveal animation is firing only once
- Can I use react-reveal directionly on astro file
- Add
- Please mention the "disabled" prop on the documentation
- Works with wrong animation
- error An unexpected error occurred: "https://registry.yarnpkg.com/@types%2freact-reveal: Not found
- Update peer dependency to add react ^18.0.0 HOT 1
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-reveal.