We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As soon as you update to the latest version and import the library, this happens. imported node_modules cannot be ignored by tsc.
node_modules
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.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
As soon as you update to the latest version and import the library, this happens.
imported
node_modules
cannot be ignored bytsc
.The text was updated successfully, but these errors were encountered: