Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TSC Compilation Issue #8

Open
Yathousen opened this issue Jul 13, 2023 · 0 comments
Open

TSC Compilation Issue #8

Yathousen opened this issue Jul 13, 2023 · 0 comments

Comments

@Yathousen
Copy link

Yathousen commented Jul 13, 2023

As soon as you update to the latest version and import the library, this happens.
imported node_modules cannot be ignored by tsc.

tsc

node_modules/@taplytics/segment-react-native-plugin-taplytics/src/methods/identify.ts:5:11 - error TS2339: Property 'email' does not exist on type 'UserTraits | undefined'.

5   const { email, firstName, lastName, name, age, gender, customData, ...customAttributes } = event.traits;
            ~~~~~

node_modules/@taplytics/segment-react-native-plugin-taplytics/src/methods/identify.ts:5:18 - error TS2339: Property 'firstName' does not exist on type 'UserTraits | undefined'.

5   const { email, firstName, lastName, name, age, gender, customData, ...customAttributes } = event.traits;
                   ~~~~~~~~~

node_modules/@taplytics/segment-react-native-plugin-taplytics/src/methods/identify.ts:5:29 - error TS2339: Property 'lastName' does not exist on type 'UserTraits | undefined'.

5   const { email, firstName, lastName, name, age, gender, customData, ...customAttributes } = event.traits;
                              ~~~~~~~~

node_modules/@taplytics/segment-react-native-plugin-taplytics/src/methods/identify.ts:5:39 - error TS2339: Property 'name' does not exist on type 'UserTraits | undefined'.

5   const { email, firstName, lastName, name, age, gender, customData, ...customAttributes } = event.traits;
                                        ~~~~

node_modules/@taplytics/segment-react-native-plugin-taplytics/src/methods/identify.ts:5:45 - error TS2339: Property 'age' does not exist on type 'UserTraits | undefined'.

5   const { email, firstName, lastName, name, age, gender, customData, ...customAttributes } = event.traits;
                                              ~~~

node_modules/@taplytics/segment-react-native-plugin-taplytics/src/methods/identify.ts:5:50 - error TS2339: Property 'gender' does not exist on type 'UserTraits | undefined'.

5   const { email, firstName, lastName, name, age, gender, customData, ...customAttributes } = event.traits;
                                                   ~~~~~~

node_modules/@taplytics/segment-react-native-plugin-taplytics/src/methods/identify.ts:5:58 - error TS2339: Property 'customData' does not exist on type 'UserTraits | undefined'.

5   const { email, firstName, lastName, name, age, gender, customData, ...customAttributes } = event.traits;
                                                           ~~~~~~~~~~


Found 7 errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant