GeekyAnts / GeekyAnts/native-base-babel-plugin

Cannot read properties of null (reading 'type') when using some shorthand boolean props

Open
#3 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1
Forks
3
PR merge metrics
No merged PRs in 30d

Description

I am getting the following error when trying to use this plugin

```
Module build failed (from /usr/local/lib/node_modules/expo-cli/node_modules/babel-loader/lib/index.js):
TypeError: /Users/murthick/Projects/native-base-babel-plugin/example/Screen3.tsx: Cannot read properties of null (reading 'type')
at /Users/murthick/Projects/native-base-babel-plugin/index.js:228:34
at Array.map ()
at JSXOpeningElement (/Users/murthick/Projects/native-base-babel-plugin/index.js:214:25)
```

This can be reproduced in the example by adding a `bounces` prop for instance to the `ScrollView` in Screen3.tsx

```js
import React from "react";
import { Box, ScrollView, Heading, Center, HStack } from "native-base";

export default function Screen3() {
return (

```

If this prop is used in the long way then it works fine

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.