-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
I am coming across an issue that the following error is thrown when I import @pontem/aptos-wallet-adapter
Situation
All the React Function Component gets the following error
'XXX' cannot be used as a JSX component.
Its return type 'ReactElement<any, string | JSXElementConstructor<any>> | null' is not a valid JSX element
Reproduction
-
Clone the repo
git clone git@github.com:notifi-network/notifi-sdk-ts.git -
Install
@pontem/aptos-wallet-adapterto@notifi-network/notifi-react-examplepackage
cd notifi-sdk-ts
npm install
npx lerna --scope=@notifi-network/notifi-react-example run install @pontem/aptos-wallet-adapter- get into the packages/notifi-react-example/src/App.tsx and import @pontem/aptos-wallet-adapter
// ...
import '@pontem/aptos-wallet-adapter';
// ...The error below will be shown only by importing @pontem/aptos-wallet-adapter without doing anything
All the JSX components become showing the same error 'XXX' cannot be used as a JSX component.
Could anybody give me a hint on how to get it around
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels