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

I have a problem with my Gatsby Project, when I try to open it #112

Open
hongphuc2197 opened this issue Jul 8, 2019 · 0 comments
Open

Comments

@hongphuc2197
Copy link

hongphuc2197 commented Jul 8, 2019

UNHANDLED REJECTION Unable to find plugin "[object Object]". Perhaps you need to install its package?

Error: Unable to find plugin "[object Object]". Perhaps you need to install its package?

gatsby-config.js

/**

  • Configure your Gatsby site with this file.

  • See: https://www.gatsbyjs.org/docs/gatsby-config/
    /
    require("dotenv").config({
    path: .env.${process.env.NODE_ENV},
    })
    module.exports = {
    /
    Your site config here */
    siteMetadata: {
    title: Medi Hospital & Research Centre,
    author: 'Medi'
    },
    plugins: [
    'gatsby-plugin-react-helmet',

    {
    resolve: gatsby-source-filesystem,
    options: {
    name: src,
    path: ${__dirname}/src/,
    },
    },
    gatsby-plugin-sass,
    gatsby-plugin-sharp,
    {
    resolve: gatsby-transformer-remark,
    options: {
    plugins: [
    // gatsby-remark-relative-images must
    // go before gatsby-remark-images
    {
    resolve: gatsby-remark-relative-images,
    },
    {
    resolve: gatsby-remark-images,
    options: {
    // It's important to specify the maxWidth (in pixels) of
    // the content container as this plugin uses this as the
    // base for generating different widths of each image.
    maxWidth: 750,
    linkImagesToOriginal: false
    },
    },
    ],
    },
    },
    {
    resolve: gatsby-plugin-manifest,
    options: {
    name: GatsbyJS,
    short_name: GatsbyJS,
    start_url: /,
    background_color: #f7f0eb,
    theme_color: #a2466c,
    display: standalone,
    icon: src/assets/images/logo-final.svg,
    },
    },
    {
    "compilerOptions": {
    "target": "es5",
    "module": "commonjs",
    "declaration": false,
    "noImplicitAny": false,
    "removeComments": false,
    "isolatedModules": false,
    "jsx": "react",
    "experimentalDecorators": true,
    "emitDecoratorMetadata": true,
    "noLib": false,
    "preserveConstEnums": true,
    "suppressImplicitAnyIndexErrors": true,
    "outDir": "./dist/"
    },
    "exclude": [
    "client",
    "node_modules",
    "typings/browser",
    "typings/browser.d.ts"
    ]
    }
    ],

}

package.json

{
"name": "gatsby-starter-hello-world",
"private": true,
"description": "A simplified bare-bones starter for Gatsby",
"version": "0.1.0",
"license": "MIT",
"scripts": {
"build": "gatsby build",
"develop": "env-cmd .env.development gatsby develop",
"format": "prettier --write src/**/*.{js,jsx}",
"start": "npm run develop",
"serve": "gatsby serve",
"test": "echo "Write tests! -> https://gatsby.dev/unit-testing\""
},
"dependencies": {
"antd": "^3.20.1",
"babel-core": "^6.26.3",
"babel-loader": "^8.0.6",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"css-loader": "^3.0.0",
"dotenv": "^8.0.0",
"extract-text-webpack-plugin": "^3.0.2",
"gatsby": "^2.10.4",
"gatsby-image": "^2.2.3",
"gatsby-plugin-env-variables": "^1.0.1",
"gatsby-plugin-manifest": "^2.2.0",
"gatsby-plugin-react-helmet": "^3.1.0",
"gatsby-plugin-sass": "^2.1.0",
"gatsby-plugin-sharp": "^2.2.1",
"gatsby-remark-images": "^3.1.2",
"gatsby-remark-relative-images": "^0.2.2",
"gatsby-source-filesystem": "^2.1.1",
"gatsby-transformer-remark": "^2.5.0",
"html-webpack-plugin": "^3.2.0",
"node-sass": "^4.12.0",
"object": "^0.1.1",
"rc-queue-anim": "^1.6.12",
"rc-scroll-anim": "^2.5.9",
"rc-tween-one": "^2.4.1",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-feather": "^1.1.6",
"react-helmet": "^5.2.1",
"react-slick": "^0.24.0",
"react-spring": "^8.0.27",
"sass-loader": "^7.1.0",
"style-loader": "^0.23.1",
"uglifyjs-webpack-plugin": "^2.1.3",
"webpack": "^4.35.0"
},
"devDependencies": {
"@graphql-codegen/cli": "^1.3.1",
"@graphql-codegen/typescript": "^1.3.1",
"@graphql-codegen/typescript-operations": "^1.3.1",
"prettier": "^1.18.2",
"react-alice-carousel": "^1.15.1"
},
"repository": {
"type": "git",
"url": "https://github.com/gatsbyjs/gatsby-starter-hello-world"
},
"bugs": {
"url": "https://github.com/gatsbyjs/gatsby/issues"
}
}

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

1 participant