contentful-migrate icon indicating copy to clipboard operation
contentful-migrate copied to clipboard

Getting failed dependency from BaseConfig

Open jessefranklin opened this issue 5 years ago โ€ข 15 comments

Error: Failed to load config "eslint-config-standard" to extend from. Referenced from: BaseConfig

jessefranklin avatar Feb 26 '20 18:02 jessefranklin

Hey @jessefranklin sorry for the long delay.

Are you still having this issue? How are you running ctf-migrate? Did you install it as a global package or is it a dev dependency in your project?

deluan avatar Mar 10 '20 21:03 deluan

I have exactly the same issue. Package installed globally. Running like this: ctf-migrate bootstrap -c "content-type-name" -t "XXXXXXXXX" -s "space-id" -e "dev" I can see that importerPath is defaulting to the directory from which we execute the command + appends placeholder.js file (it's eslint logic)

The error stack:

  ๐Ÿšจ  Failed to perform bootstrap : Error: Failed to load config "eslint-config-standard" to extend from.
Referenced from: BaseConfig
Error: Failed to load config "eslint-config-standard" to extend from.
Referenced from: BaseConfig
    at configMissingError (/usr/local/lib/node_modules/contentful-migrate/node_modules/eslint/lib/cli-engine/config-array-factory.js:265:9)
    at ConfigArrayFactory._loadExtendedShareableConfig (/usr/local/lib/node_modules/contentful-migrate/node_modules/eslint/lib/cli-engine/config-array-factory.js:826:23)
    at ConfigArrayFactory._loadExtends (/usr/local/lib/node_modules/contentful-migrate/node_modules/eslint/lib/cli-engine/config-array-factory.js:731:25)
    at ConfigArrayFactory._normalizeObjectConfigDataBody (/usr/local/lib/node_modules/contentful-migrate/node_modules/eslint/lib/cli-engine/config-array-factory.js:660:25)
    at _normalizeObjectConfigDataBody.next (<anonymous>)
    at ConfigArrayFactory._normalizeObjectConfigData (/usr/local/lib/node_modules/contentful-migrate/node_modules/eslint/lib/cli-engine/config-array-factory.js:596:20)
    at _normalizeObjectConfigData.next (<anonymous>)
    at createConfigArray (/usr/local/lib/node_modules/contentful-migrate/node_modules/eslint/lib/cli-engine/config-array-factory.js:340:25)
    at ConfigArrayFactory.create (/usr/local/lib/node_modules/contentful-migrate/node_modules/eslint/lib/cli-engine/config-array-factory.js:395:16)
    at createBaseConfigArray (/usr/local/lib/node_modules/contentful-migrate/node_modules/eslint/lib/cli-engine/cascading-config-array-factory.js:86:48)
    at new CascadingConfigArrayFactory (/usr/local/lib/node_modules/contentful-migrate/node_modules/eslint/lib/cli-engine/cascading-config-array-factory.js:211:30)
    at new CLIEngine (/usr/local/lib/node_modules/contentful-migrate/node_modules/eslint/lib/cli-engine/cli-engine.js:563:36)
    at jsonToScript (/usr/local/lib/node_modules/contentful-migrate/lib/bootstrap/jsonToScript.js:69:18)
    at /usr/local/lib/node_modules/contentful-migrate/lib/bootstrap/generateScripts.js:30:11
    at processTicksAndRejections (internal/process/task_queues.js:94:5)
    at async /usr/local/lib/node_modules/contentful-migrate/node_modules/p-map/index.js:57:15 {
  messageTemplate: 'extend-config-missing',
  messageData: { configName: 'eslint-config-standard', importerName: '' }
}

mbaranovski avatar Apr 03 '20 14:04 mbaranovski

I'm getting this issue as well. Any fix here?

kweingart08 avatar Nov 04 '20 18:11 kweingart08

@deluan is there a resolution to this issue? I'm getting this same error.

timreimherr avatar Jan 15 '21 18:01 timreimherr

Same error here too.

Jonathan-Wong-Code avatar Feb 10 '21 20:02 Jonathan-Wong-Code

@Jonathan-Wong-Code and others having this issue: Can you try running it with npx, like this:

npx contentful-migrate command [params]

deluan avatar Feb 10 '21 20:02 deluan

No dice. I'm actually getting

Error: BaseConfig ยป eslint-config-standard: Environment key "es2021" is unknown

    After installing it locally with eslint...googled and it did an npm ls eslint.

Looks like it's running eslint 6.8 which doesn't support es2021. (I'm just using the default Create-react-app setup)

Jonathan-Wong-Code avatar Feb 10 '21 21:02 Jonathan-Wong-Code

When running contentful-migrate with npx, you should not add it to your package.json. Is that your case?

deluan avatar Feb 10 '21 21:02 deluan

I've tried both :) same result.

Jonathan-Wong-Code avatar Feb 11 '21 15:02 Jonathan-Wong-Code

I'm getting the same error. Tried dev dependency and global, and npx with no luck.

Update: I was able to successfully run yarn ctf-migrate bootstrap from my project after removing eslint from my projects dependencies.

stephenmacnaughtan avatar Feb 26 '21 02:02 stephenmacnaughtan

I'm having the same issue. Any updates?

aladage avatar May 11 '21 04:05 aladage

Any updates on this issue? I'm experiencing the same.

AndrianMauricio avatar Sep 30 '21 16:09 AndrianMauricio

Getting the same issue here as well. I guess no updates yet ?

imrans110 avatar Oct 21 '21 19:10 imrans110

same error here.

I'm getting the same error. Tried dev dependency and global, and npx with no luck.

Update: I was able to successfully run yarn ctf-migrate bootstrap from my project after removing eslint from my projects dependencies.

I was also able to run it after uninstalling eslint from my project depts.

Also, it only happens when running bootstrap. I added back eslint to the package.json and i've been able to run all other commands.

tonioriol avatar Oct 28 '21 12:10 tonioriol

Globally running ctf-migrate failed for me too. However when adding it to package.json and using it via npm run migrate -- bootstrap -c banner -s spaceid worked fine. Following is my package.json file

{
  "name": "simple-migrate",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "migrate": "ctf-migrate"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "contentful-migrate": "^0.17.0"
  }
}
 

bnadeem avatar Jan 12 '22 01:01 bnadeem