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

Import not working #3

Open
tylermcrobert opened this issue May 23, 2024 · 4 comments
Open

Import not working #3

tylermcrobert opened this issue May 23, 2024 · 4 comments

Comments

@tylermcrobert
Copy link

Hi there, I am getting the following error when importing the package:

Module '"arena-typed"' has no exported member 'Arena'. Did you mean to use 'import Arena from "arena-typed"' instead?ts(2614)

I am at the latest version (1.0.4)

@pdelfan
Copy link
Owner

pdelfan commented May 23, 2024

Hi @tylermcrobert, thanks for letting me know. The example on the documentation is using a named import from the older version. If you try a default import import Arena from 'arena-typed', it should work. I've updated the documentation to reflect this change. Let me know if this works!

@pdelfan
Copy link
Owner

pdelfan commented Jun 4, 2024

Hi @tylermcrobert, thanks for letting me know. The example on the documentation is using a named import from the older version. If you try a default import import Arena from 'arena-typed', it should work. I've updated the documentation to reflect this change. Let me know if this works!

Hi @tylermcrobert, could you please confirm if this fixes the error?

@tylermcrobert
Copy link
Author

Hey @pdelfan, apologies for the delay. I'm now getting the following:

const arena = new Arena("<token>");

TypeError: __vite_ssr_import_0__.default is not a constructor at load (/Users/tylermcrobert/Sites/are.na-screenshotter/web/src/routes/+page.server.ts:4:16) at Module.load_server_data (/Users/tylermcrobert/Sites/are.na-screenshotter/web/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@sveltejs/kit/src/runtime/server/page/load_data.js:61:41)

@pdelfan
Copy link
Owner

pdelfan commented Sep 2, 2024

Hey @tylermcrobert, sorry for an even longer delay and thanks for helping me out. Unfortunately I'm at a max capacity and don't have enough time to work on the API, but I do plan to get back to it sometime in future.

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

No branches or pull requests

2 participants