-
Notifications
You must be signed in to change notification settings - Fork 73
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
platform-core import issue when running app #2235
Comments
Hey @jtweeks, thank you for reaching out. To reproduce this issue could you provide us some additional information. |
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 |
Any updates, is the change going to be made. Other implementations of the
same zod library have had this same issue before. For example here, for
openAi: openai/openai-node#1032
|
Hey @jtweeks, apologies on the delay. having a bit of trouble reproducing this issue with the information provided. Would you be open to sharing your project with a minimal reproduction or via a DM on discord? my handle is |
I believe this flag in tsconfig fixed the issue for me:
"allowSyntheticDefaultImports": true,
…On Wed, Nov 27, 2024 at 11:28 AM Kethan sai ***@***.***> wrote:
Hey @jtweeks <https://github.com/jtweeks>, apologies on the delay. having
a bit of trouble reproducing this issue with the information provided.
Would you be open to sharing your project with a minimal reproduction or
via a DM on discord? my handle is ykethan
—
Reply to this email directly, view it on GitHub
<#2235 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKPAJT3JBGJISFD7KO2YXT2CXXLBAVCNFSM6AAAAABR3ALHBKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBUGMYDIMRUGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Glad to hear you were able to get this working. |
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
The text was updated successfully, but these errors were encountered: