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

Can't install "@excid3/uppy-activestorage-upload" package #8

Open
maszuDEV opened this issue Mar 21, 2023 · 5 comments
Open

Can't install "@excid3/uppy-activestorage-upload" package #8

maszuDEV opened this issue Mar 21, 2023 · 5 comments

Comments

@maszuDEV
Copy link

Hello everyone!

When I'm trying to install package by using command yarn add @excid3/uppy-activestorage-upload, I'm getting:

error An unexpected error occurred: "https://registry.yarnpkg.com/@excid3%2fuppy-activestorage-upload: Not found".

Same with npm install @excid3/[email protected]

 Not Found - GET https://registry.npmjs.org/@excid3%2fuppy-activestorage-upload - Not found

Best regards and thank you for amazing work :)

@ameft
Copy link

ameft commented Mar 22, 2023

Same for me, just incurred in the problem now, maybe a temporary issue?
EDIT: I tried to solve it with npm i https://github.com/excid3/uppy-activestorage-upload but now when I try to run my Nuxt app I get in the console export 'default' (imported as 'ActiveStorageUpload') was not found in '@excid3/uppy-activestorage-upload' and then in the browser TextEncoder is not defined regarding node_modules/@noble/hashes/utils.js.

@ameft
Copy link

ameft commented Mar 29, 2023

@excid3 it's still not possible to install the module through npm and I don't get if the error I'm receiving is due to the way I've installed it directly through GitHub. Any idea?

@excid3
Copy link
Owner

excid3 commented Mar 29, 2023

I didn't end up spending the money to use an organization on npm for this.

I believe you installed it correctly with npm directly to github and your import should be:

import ActiveStorageUpload from '@excid3/uppy-activestorage-upload'

@ameft
Copy link

ameft commented Mar 30, 2023

Thanks for the quick reply @excid3. Yes I'm importing like that but I can't get rid of that error in @noble/hashes (which is a dependency of @paralleldrive/cuid2 which you introduce back in this commit to replace cuid).
I've opened an issue on @noble/hashes because I have no other idea...

EDIT: @excid3 I'm now afraid that the issue is instead related to the SSR of my Nuxt.js app that tries to run the import also on the server side, unsuccessfully. I've tried with the old ActiveStorageUpload = require('@excid3/uppy-activestorage-upload') inside an if (process.client) (I don't know otherwise how to import client only) but I'm getting this error in the browser console: TypeError: Cannot assign to read only property 'exports' of object '#<Object>'. But at least there's no @noble/hashes error anymore.
I've no issues with the other Uppy components BTW.

@acflint
Copy link

acflint commented May 15, 2023

I also get the error "export 'default' (imported as 'ActiveStorageUpload') was not found in '@excid3/uppy-activestorage-upload' when webpack tries to compile.

I have installed with yarn using yarn add excid3/uppy-activestorage-upload. Then am following your setup instructions to initialize the plugin with Uppy.

Any suggestions @excid3?

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

4 participants