[v9.0.0-rc.3] TypeScript syntax error when bundling for React Native
See original GitHub issueHi, the syntax for typescript incorrect in @react-spring/core@9.0.0-rc.3
at ReactNative
environment.
The error report is below:
if I change to
export { AnimationResult } from './AnimationResult'
export { UnknownProps } from './types/common'
It works.
What should i do or how can i resolve it?
_Originally posted by @moonrailgun in https://github.com/react-spring/react-spring/issues/985#issuecomment-634048743_
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
[v9.0.0-rc.3] TypeScript syntax error when bundling for React ...
Hi, the syntax for typescript incorrect in @react-spring/core@9.0.0-rc.3 at ReactNative environment. The error report is below: if I change ...
Read more >react-native bundle script throwing syntax error on typescript ...
When running a build using the react-native bundle script an error is thrown on react-navigation modules referring to typescript.
Read more >React Relay
Relay generates Flow or TypeScript types for each of your React components that use Relay, which represent the data that each component receives,...
Read more >Using TypeScript - React Native
TypeScript is a language which extends JavaScript by adding type ... you may run into an issue when it comes to bundling a...
Read more >@intlify/core-base | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Oh i resolve it. Its looks like alse dependent on other core package. Just upgrade
@babel/core
and@babel/runtime
. And everything looks wellhttps://github.com/facebook/metro/issues/537#issuecomment-630190299
Try
--reset-cache
when starting the react-native dev server.