Can't install "@excid3/uppy-activestorage-upload" package
maszuDEV opened this issue · comments
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/uppy-activestorage-upload@1.0.0
Not Found - GET https://registry.npmjs.org/@excid3%2fuppy-activestorage-upload - Not found
Best regards and thank you for amazing work :)
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
.
@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?
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'
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.
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?