hdoro / sanity-plugin-external-files

Work w/ media hosted in external vendors from inside a Sanity.io studio
44 stars 14 forks source link

Installation step missing #2

Open mirkods opened 3 years ago

mirkods commented 3 years ago

Hi there,

first of all congratulation for your plugin, it looks good for my use case of creating a DAM on top of S3.

I have a problem when installing the plugin I receive this error: Module not found: Error: Can't resolve 'config:s3-dam'

Did you miss a step in documentation?

Mirko

cavellblood commented 2 years ago

I'm also getting this error. Did you ever figure this out?

cavellblood commented 2 years ago

I'm getting the following error when starting Sanity Studio locally:

❯ yarn start
yarn run v1.22.19
$ sanity start
✔ Checking configuration files...
⠦ Compiling...webpack built a2b79daab6f8081098fe in 11779ms
✔ Compiling...
Failed to compile.

Error in ./node_modules/sanity-plugin-s3-dam/lib/config.js
Module not found: Error: Can't resolve 'config:s3-dam?' in '/Users/cavellblood/webdev/sanity-project/node_modules/sanity-plugin-s3-dam/lib'
 @ ./node_modules/sanity-plugin-s3-dam/lib/config.js 16:40-65
 @ ./node_modules/sanity-plugin-s3-dam/lib/schemas/s3-dam.custom-data.js
 @ ./node_modules/sanity-plugin-s3-dam/lib/schemas/s3-dam.custom-data.js (all:part:@sanity/base/schema-type)
 @ ./schemas/schema.js (part:@sanity/base/schema)
 @ ./node_modules/@sanity/vision/lib/SanityVision.js
 @ ./node_modules/@sanity/vision/lib/VisionTool.js
 @ ./node_modules/@sanity/vision/lib/VisionTool.js (all:part:@sanity/base/tool)
 @ ./node_modules/@sanity/default-layout/lib/util/getRegisteredTools.js
 @ ./node_modules/@sanity/default-layout/lib/router.js
 @ ./node_modules/@sanity/default-layout/lib/Root.js (part:@sanity/base/root)
 @ ./node_modules/@sanity/base/lib/components/SanityRoot.js (part:@sanity/base/sanity-root)
 @ ./node_modules/@sanity/server/lib/browser/entry-dev.js
 @ multi ./node_modules/@sanity/server/lib/browser/entry-dev.js

So I'm not able to even get into the control panel to even put in my AWS credentials. Maybe I'm missing something.

mxmzb commented 2 years ago

having the same issue (just +1ing for visibility)

ps.: using 0.6.2 works for me.

cavellblood commented 2 years ago

@mxmzb In what file did you change the version to 0.6.2?

GamfaleanuVlad commented 1 year ago

Is there any update on this? I kinda need the version 0.7.0 . In dire need of the new file types :)

felixhaeberle commented 1 year ago

I have also this error, what is missing here?

ghost commented 1 year ago

@mxmzb In what file did you change the version to 0.6.2?

I'd already attempted the standard sanity install s3-dam and got the same result as you.

I took a guess and tried sanity install s3-dam@0.6.2 which looked good but gave me this error on sanity start:

Error: Plugin "s3-dam@0.6.2" not found.
Locations tried:
....

In sanity.json I now had two entries for the s3-dam plugin

...
  "plugins": [
    "@sanity/base",
    "@sanity/default-layout",
    "@sanity/default-login",
    "@sanity/desk-tool",
    "s3-dam",
    "s3-dam@0.6.2"
  ],
 ...

So I removed "s3-dam@0.6.2" and sanity start was then able to do its thing.

HTH