You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I'm not able to reproduce this issue, seems like we are missing the @react-native/babel-preset dependency in our root package.json but it's not causing this problem on my end. Obviously we should fix that but the author of the issue says adding it didn't change anything on their end.
To test the library, I basically created a new project using npx create-react-native-library babel-plugin-test and selected Native Module, Kotlin and Swift. Then I removed all the TypeScript files and created a .js and a .jsx file with bad linting, yarn lint worked just fine (it showed the problems). Then I created a .test.js file and a .test.jsx file and yarn test ran just fine.
Could you describe better reproduction steps? In the Selected Options, you only listed the command you ran, not the answers you gave to the CLI. Also, could you provide a reproduction repo? Any help would be appreciated, we want to get this one fixed.
Description
I just create a new library with CRNL, I used
.js
instead ofts/tsx
in my code but everytime declareimport React from 'react';
, eslint keep sayingI've tried installing
@react-native/babel-preset
usingyarn add -D @react-native/babel-preset
, but the error still persist,is it expected error from eslint? or CRNL is not supported for
.js
extension?Packages
Selected options
npx create-react-native-library my-library
Link to repro
not published yet
Environment
The text was updated successfully, but these errors were encountered: