Skip to content
This repository was archived by the owner on May 10, 2021. It is now read-only.
This repository was archived by the owner on May 10, 2021. It is now read-only.

Cannot find module 'jimp' #143

Closed
@ctsimpouris

Description

@ctsimpouris

Describe the bug
Unfortunately no repo can be provided

Versions
Bug started to appear on Wednesday, 13/1/2021 after this commit.

Log
After this commit, the same code stopped being able to be deployed to Netlify with the following log

12:41:02 AM: ────────────────────────────────────────────────────────────────
12:41:02 AM:   4. Functions bundling                                         
12:41:02 AM: ────────────────────────────────────────────────────────────────
12:41:02 AM: ​
12:41:02 AM: Packaging Functions from out_functions directory:
12:41:02 AM:  - next_categories/next_categories.js
12:41:02 AM:  - next_collections/next_collections.js
12:41:02 AM:  - next_image.js
12:41:02 AM:  - next_index/next_index.js
12:41:02 AM:  - next_vid_name_term_id/next_vid_name_term_id.js
12:41:13 AM: ​
12:41:13 AM: ────────────────────────────────────────────────────────────────
12:41:13 AM:   Dependencies installation error                               
12:41:13 AM: ────────────────────────────────────────────────────────────────
12:41:13 AM: ​
12:41:13 AM:   Error message
12:41:13 AM:   A Netlify Function failed to require one of its dependencies.
12:41:13 AM:   If the dependency is a Node module, please make sure it is present in the site's top-level "package.json".
  If it is a local file instead, please make sure the file exists and its filename is correctly spelled.
12:41:13 AM: ​
12:41:13 AM:   In file "/opt/build/repo/frontend/sfx-next/out_functions/next_image.js"
12:41:13 AM:   Cannot find module 'jimp'
12:41:13 AM:   Require stack:
12:41:13 AM:   - /opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/lib/node_modules/@netlify/build/node_modules/@netlify/zip-it-and-ship-it/src/node_dependencies/resolve.js
12:41:13 AM:   - /opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/lib/node_modules/@netlify/build/node_modules/@netlify/zip-it-and-ship-it/src/node_dependencies/index.js
12:41:13 AM:   - /opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/lib/node_modules/@netlify/build/node_modules/@netlify/zip-it-and-ship-it/src/main.js
12:41:13 AM:   - /opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/lib/node_modules/@netlify/build/src/plugins_core/functions/index.js
12:41:13 AM:   - /opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/lib/node_modules/@netlify/build/src/commands/get.js
12:41:13 AM:   - /opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/lib/node_modules/@netlify/build/src/core/main.js
12:41:13 AM:   - /opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/lib/node_modules/@netlify/build/src/core/bin.js

while also function next_image.js started to appear out of the blue. Due to Cannot find module 'jimp', I proceed and installed dependency jimp, making the deployment process work as expected. However, this is something that definitely within my repo is not used so far.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions