./node_modules/@react-native-community/datetimepicker/src/datetimepicker.js
Module parse failed: Unexpected token (9:12)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| import {Platform} from 'react-native';
|
> import type {BaseProps} from './types';
|
| export default function DateTimePicker(_props: BaseProps): null {
It is a basic expo next setup, I am trying to use the native date and time pickers for both mobile and web.
It works fine with the expo, but getting the token issue in the next js
Please help If you have any Idea, maybe its more of a next issue but any help here will be greatly appreciated 😇
Error ☹️
Failed to compile
Git Repo with the issue : https://github.com/SSOURABH58/reactnative-nextjs-template
Code:
Path form root:
pages\index.tsx
path for MyWebDatePicker :
components\customeWebComp\MyWebDatePicker.tsx
It is a basic expo next setup, I am trying to use the native date and time pickers for both mobile and web. It works fine with the expo, but getting the token issue in the next js
Please help If you have any Idea, maybe its more of a next issue but any help here will be greatly appreciated 😇