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

Cannot find module '../package.json' #74

Closed
carcer opened this issue May 22, 2023 · 3 comments · Fixed by #75
Closed

Cannot find module '../package.json' #74

carcer opened this issue May 22, 2023 · 3 comments · Fixed by #75
Labels

Comments

@carcer
Copy link

carcer commented May 22, 2023

Hello, am I having an issue running an app when gatsby-source-cloudinary ins installed:

 Error: Cannot find module '../package.json'
  Require stack:
  - /home/chris/development/app/app-static/node_modules/gatsby-source-cloudinary/utils.js
  - /home/chris/development/app/app-static/node_modules/gatsby-source-cloudinary/gatsby-node.js
  
  - loader:1075 Function.Module._resolveFilename
    node:internal/modules/cjs/loader:1075:15
  
  - loader:920 Function.Module._load
    node:internal/modules/cjs/loader:920:27
  
  - loader:1141 Module.require
    node:internal/modules/cjs/loader:1141:19
  
  - helpers:110 require
    node:internal/modules/cjs/helpers:110:18
  
  - utils.js:4 Object.<anonymous>
    [app-static]/[gatsby-source-cloudinary]/utils.js:4:19
  
  - loader:1254 Module._compile
    node:internal/modules/cjs/loader:1254:14
  
  - loader:1308 Object.Module._extensions..js
    node:internal/modules/cjs/loader:1308:10
  
  - loader:1117 Module.load
    node:internal/modules/cjs/loader:1117:32
  
  - loader:958 Function.Module._load
    node:internal/modules/cjs/loader:958:12
  
  - loader:1141 Module.require
    node:internal/modules/cjs/loader:1141:19
  
  - helpers:110 require
    node:internal/modules/cjs/helpers:110:18
  
  - gatsby-node.js:5 Object.<anonymous>
    [app-static]/[gatsby-source-cloudinary]/gatsby-node.js:5:5
  
  - loader:1254 Module._compile
    node:internal/modules/cjs/loader:1254:14
  
  - loader:1308 Object.Module._extensions..js
    node:internal/modules/cjs/loader:1308:10
  
  - loader:1117 Module.load
    node:internal/modules/cjs/loader:1117:32
  
  - loader:958 Function.Module._load
    node:internal/modules/cjs/loader:958:12
  

not finished load plugins - 0.644s

error Command failed with exit code 1.

Config is:

{
      resolve: `gatsby-source-cloudinary`,
      options: {
        cloudName: process.env.CLOUDINARY_CLOUD_NAME,
        apiKey: process.env.CLOUDINARY_API_KEY,
        apiSecret: process.env.CLOUDINARY_API_SECRET,
        resourceType: `image`,
        // type: `twitter`,
        // maxResults: 22,
        // tags: true,
        // context: true,
        // prefix: `demo/animals`
      },
    },

ENV variables are defined

cloudinary-raae pushed a commit that referenced this issue May 22, 2023
github-actions bot pushed a commit that referenced this issue May 22, 2023
## [0.5.1](v0.5.0...v0.5.1) (2023-05-22)

### Bug Fixes

* use correct plugin package path ([#75](#75)) ([11398f5](11398f5)), closes [#74](#74)
@github-actions
Copy link

🎉 This issue has been resolved in version 0.5.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@raae
Copy link
Collaborator

raae commented May 22, 2023

Thank you for letting us know; it should be fixed as mentioned above in 0.5.1.

Install by doing npm install gatsby-source-cloudinary@latest or yarn add gatsby-source-cloudinary@latest.

@carcer
Copy link
Author

carcer commented May 22, 2023

Can confirm it works now. Thanks for the quick response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 participants