GeekyAnts / GeekyAnts/nativebase-templates

SntaxError: Unexpected token 'export'

Open
#71 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
73
Forks
69
PR merge metrics
No merged PRs in 30d

Description

I did a clone from [solito-universal-app-template-nativebase-typescript ](https://github.com/GeekyAnts/nativebase-templates/tree/master/solito-universal-app-template-nativebase-typescript) and I tried to install a module "expo-camera"
then I got that error message

Steps to reproduce:

1. run command `yarn add module expo-camera in directory ./packages/app.`
2. yarn web

**Message**

Screenshot 2022-11-02 at 17 17 01

**Sample code**
```

import { Link as SolitoLink } from 'solito/link'
import React from 'react'
import {
Center,
Image,
HStack,
Text,
Heading,
Code,
Link,
VStack,
Button,
AspectRatio,
Box,
} from 'native-base'
import { ColorModeSwitch } from '../../components'
import { Camera } from 'expo-camera';

export function HomeScreen() {
return (



)
}

```

Package.json in package/app
```

{
"version": "0.0.0",
"name": "app",
"main": "index.ts",
"dependencies": {
"@react-navigation/native": "^6.0.8",
"@react-navigation/native-stack": "^6.5.0",
"expo-barcode-scanner": "^11.4.0",
"expo-camera": "^12.3.0",
"expo-linking": "^3.0.0",
"native-base": "3.3.7",
"react-native-svg": "^12.3.0",
"react-native-web": "0.17.7",
"solito": "0.0.22"
},
"sideEffects": false
}

```

Am i missing something in configuration ?

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.