Comments (2)
The error message is telling you the problem.
Your project is not configured correctly for ECMAScript modules - But you are using the import
(modules) syntax in your file.
You'll most likely want to change your moduleResolution
to bundler
. Using NodeNext
is going to give you problems in a React application.
See something like the Vite React template for basic project configuration needs
from react-intersection-observer.
If i do it it breaks Gulp (gulpfile.tsx) with
import zip from "bestzip";
^^^^^^
SyntaxError: Cannot use import statement outside a module
errors
i fixed it with adding
"ts-node": {
"compilerOptions": {
"moduleResolution": "NodeNext",
"module": "NodeNext"
}
},
to my tsconfig.json
thank you for the advice!
from react-intersection-observer.
Related Issues (20)
- How you looking to add short video for each property? HOT 1
- Build errors after upgrading to Next 13.4.5 HOT 6
- No way to make active link on scroll in different components using .map() HOT 3
- Can't import the named export 'Component' from non EcmaScript module HOT 4
- package not working with webpack HOT 4
- Safari support <=13 is completely broken. HOT 3
- use same ref,useInView for multiple components HOT 1
- Hello author, why can setRef assign a value to ref and obtain an instance of the element? HOT 1
- Not working below desktop screen view HOT 1
- Prevent InView From Calling Functions in Initial Render HOT 2
- InView Component Doesn't Trigger onChange After Updating to Latest NextJS Version HOT 11
- Bump major version for breaking changes HOT 1
- Support a ref for root HOT 2
- Add `react-dom` as a peer-dependency HOT 9
- Upgrade to 9.5.4 and broke my compile. HOT 3
- Your library is not working on NextJS14 HOT 2
- test-utils failing in React 17 HOT 3
- TypeError: __webpack_require__.g.IntersectionObserver.mockClear is not a function HOT 1
- How to create TOC using this library?
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-intersection-observer.