Open jtweeks opened 6 days ago
Hey @jtweeks, thank you for reaching out. To reproduce this issue could you provide us some additional information. Are you experiencing this issue when using the Data client in your application?
Correct, I followed the multiple teams steps. I am on Angular 16, typescript 5.0.? for the front end, latest amplify on backend. This is the only issue I am seeing when trying to build and run the front end, and if I update the import line in node modules it goes away, but that won’t work when deployed since it will pull the original package from npm.Sent on the go by JoseOn Nov 15, 2024, at 2:12 PM, Kethan sai @.***> wrote: Hey @jtweeks, thank you for reaching out. To reproduce this issue could you provide us some additional information. Are you experiencing this issue when using the Data client in your application?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>
By the way everything else is working. I was able to import the aws-sdk to call a lambda function in the sandbox but I can’t use the Client due to that import error. Thx for the assistanceSent on the go by JoseOn Nov 15, 2024, at 2:12 PM, Kethan sai @.***> wrote: Hey @jtweeks, thank you for reaching out. To reproduce this issue could you provide us some additional information. Are you experiencing this issue when using the Data client in your application?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>
Hey @jtweeks, apologies on the delay. I was not able to reproduce this issue, could you provide us a minimal reproduction steps or link to a Github repo that would help us in diving into this issue.
I believe this issue stems from using 2 different projects, with different typescript versions. My front end is using Angular 16 and typescript 5.0.? the backend project is using 5.6.? and amplify 6.8.?. All I did was point to the schema in the backend project from the front end, and the issue happens when it tries to resolve all the dependencies. Do I have to use a schema with the client? Can I use other clients, and will they authenticate? thanks
Environment information
Describe the bug
Error: node_modules/@aws-amplify/platform-core/lib/package_json_reader.d.ts:1:8 - error TS1192: Module '"/Users/joseweeks/Documents/WebApps/villadelsol/node_modules/zod/index"' has no default export.
import z from 'zod';
Reproduction steps
I do have my front end and backend as separate projects and git repos. Did an angular 'npm run start' in local dev environment
Can be fixed by updating import to: import type * as z from 'zod';
in package_json_reader.d.ts