Creating an AWS Instance

Appollo Doc Theme

I recently have been working wih appollo theme and stumbled upon erro message like:

No "exports" main resolved in /gatsby-theme-apollo-docs/node_modules/@babel/helper-compilation-targets/package.json

In these cases what you need to do is:

  1. Remove package-lock.json and/or yarn-lock.json then depending on what package manager that particular application is using you can do something like this:
// Install dependencies

// Then start the application
yarn start

To see what available command you have for that application you need to check out pacage.json. In this case this is what I have.

"scripts": {
    "start": "gatsby develop",
    "build": "gatsby build"

The above commands first starts gatsby, and the other one build it.