How do we include a partner engineer on this forum for Strapi?

This should be an issue for someone at either Netlify or Strapi to actually resolve. On none of the questions, two of which have a lot of views and activity, do we get an answer.


There is similar dismay on the Strapi forum.

Netlify has a Strapi Integration that doesn’t seem to do anything.


Strapi includes Netlify as a sponsor. Netlify has a plugin on Strapi.

Clearly someone at Netlify wants this to work. Clearly someone at Strapi wants this to work. This is not an error in my code, I’m not getting an error on local (and it’s a CMS, we don’t actually write code. We just install and go create a content model). There is only either a 404 error or a build error on the Netlify deployment.

Here is my Netlify deployment:

https://eclectic-content.netlify.app/

It’s crazy to have to spend two days rereading and rereading docs that are not step by step specific across both of your sites, when you both advertise plugins and integrations and clearly have put a lot of expensive man hours into trying to make it work out of the box.

Please

Here is the error. It is not installing the plugin on Netlify.

11:08:59 PM: ❯ Installing plugins
11:08:59 PM:    - strapi-plugin-netlify-deployments@2.0.1
11:09:58 PM: ​
11:09:58 PM: Core internal error                                           
11:09:58 PM: ────────────────────────────────────────────────────────────────
11:09:58 PM: ​
11:09:58 PM:   Error message
11:09:58 PM:   Error: Cannot find module "strapi-plugin-netlify-deployments"
11:09:58 PM:   Require stack:
11:09:58 PM:   - /opt/buildhome/node-deps/node_modules/@netlify/build/lib/utils/resolve.js
11:09:58 PM: ​
11:09:58 PM:   Error location
11:09:58 PM:       at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15)
11:09:58 PM:       at Function.resolve (node:internal/modules/helpers:188:19)
11:09:58 PM:       at resolvePath (file:///opt/buildhome/node-deps/node_modules/@netlify/build/lib/utils/resolve.js:25:24)
11:09:58 PM:       at async resolveMissingPluginPath (file:///opt/buildhome/node-deps/node_modules/@netlify/build/lib/plugins/resolve.js:150:24)
11:09:58 PM:       at async Promise.all (index 0)
11:09:58 PM:       at async resolvePluginsPath (file:///opt/buildhome/node-deps/node_modules/@netlify/build/lib/plugins/resolve.js:37:29)
11:09:58 PM:       at async tGetPluginsOptions (file:///opt/buildhome/node-deps/node_modules/@netlify/build/lib/plugins/options.js:12:29)
11:09:58 PM:       at async tGetPluginsOptions (file:///opt/buildhome/node-deps/node_modules/@netlify/build/lib/time/main.js:18:63)
11:09:58 PM:       at async initAndRunBuild (file:///opt/buildhome/node-deps/node_modules/@netlify/build/lib/core/build.js:258:66)
11:09:58 PM:       at async runAndReportBuild (file:///opt/buildhome/node-deps/node_modules/@netlify/build/lib/core/build.js:154:165)
11:09:58 PM: ​
11:09:58 PM:   Error properties
11:09:58 PM:   { code: "MODULE_NOT_FOUND" }
11:09:58 PM: ​
11:09:58 PM:   Resolved config
11:09:58 PM:   build:
11:09:58 PM:     base: /opt/build/repo
11:09:58 PM:     command: npm run buildall
11:09:58 PM:     commandOrigin: config
11:09:58 PM:     environment:
11:09:58 PM:       - INCOMING_HOOK_BODY
11:09:58 PM:       - INCOMING_HOOK_TITLE
11:09:58 PM:       - INCOMING_HOOK_URL
11:09:58 PM:     publish: /opt/build/repo/build
11:09:58 PM:     publishOrigin: config
11:09:58 PM:   functionsDirectory: /opt/build/repo/netlify/functions
11:09:58 PM:   plugins:
11:09:58 PM:     - inputs: {}
11:09:58 PM:       origin: ui
11:09:58 PM:       package: strapi-plugin-netlify-deployments
11:09:58 PM:   redirects:
11:09:58 PM:     - force: true
11:09:58 PM:       from: /admin/runtime~main.*.js
11:09:58 PM:       headers:
11:09:58 PM:         Content-Type: text/html; charset=utf-8
11:09:58 PM:         X-Content-Type-Options: nosniff
11:09:58 PM:       to: /admin/runtime~main.*.js
11:09:58 PM:     - force: true
11:09:58 PM:       from: /admin/main.*.js
11:09:58 PM:       headers:
11:09:58 PM:         Content-Type: text/html; charset=utf-8
11:09:58 PM:         X-Content-Type-Options: nosniff
11:09:58 PM:       to: /admin/main.*.js
11:09:58 PM:   redirectsOrigin: config
11:09:59 PM: Failed during stage "building site": Build script returned non-zero exit code: 4
11:09:59 PM: Build failed due to an internal system error: Build script returned non-zero exit code: 4
11:09:59 PM: Failing build: Failed to build site
11:09:59 PM: Finished processing build request in 1m27.349s

When it did not throw that error earlier, I was getting this error when I would go to the admin URL:

Here is the build that did not throw an error in the build, but instead showed me the lovely 404:
https://65d17fb1941da90008b4999a--eclectic-content.netlify.app/

9:55:45 PM: build-image version: fcb0c1b3ada6d25c1cb58e8bc514f5f23cc14f15 (focal)
9:55:45 PM: buildbot version: f395ea5f6f06715665ef60980f5ca024c32ca3b9
9:55:45 PM: Fetching cached dependencies
9:55:45 PM: Starting to download cache of 1.1GB
9:55:48 PM: Finished downloading cache in 3.112s
9:55:48 PM: Starting to extract cache
9:55:55 PM: Finished extracting cache in 7.54s
9:55:55 PM: Finished fetching cache in 10.753s
9:55:55 PM: Starting to prepare the repo for build
9:55:56 PM: Preparing Git Reference refs/heads/master
9:55:56 PM: Custom build path detected. Proceeding with the specified path: “”
9:55:57 PM: Starting to install dependencies
9:55:57 PM: Python version set to 3.8
9:55:57 PM: Attempting Ruby version 2.7.2, read from environment
9:55:58 PM: Using Ruby version 2.7.2
9:55:58 PM: Started restoring cached go cache
9:55:58 PM: Finished restoring cached go cache
9:55:59 PM: go version go1.19.13 linux/amd64
9:56:00 PM: Using PHP version 8.0
9:56:00 PM: Started restoring cached Node.js version
9:56:02 PM: Finished restoring cached Node.js version
9:56:02 PM: v18.19.1 is already installed.
9:56:02 PM: Now using node v18.19.1 (npm v10.2.4)
9:56:02 PM: Enabling Node.js Corepack
9:56:02 PM: Started restoring cached build plugins
9:56:02 PM: Finished restoring cached build plugins
9:56:02 PM: Started restoring cached corepack dependencies
9:56:02 PM: Finished restoring cached corepack dependencies
9:56:02 PM: Started restoring cached yarn cache
9:56:02 PM: Finished restoring cached yarn cache
9:56:03 PM: No yarn workspaces detected
9:56:03 PM: Started restoring cached node modules
9:56:03 PM: Finished restoring cached node modules
9:56:03 PM: Installing npm packages using Yarn version 1.22.19
9:56:03 PM: yarn install v1.22.19
9:56:03 PM: [1/5] Validating package.json…
9:56:03 PM: [2/5] Resolving packages…
9:56:04 PM: success Already up-to-date.
9:56:04 PM: Done in 0.31s.
9:56:04 PM: npm packages installed using Yarn
9:56:04 PM: Successfully installed dependencies
9:56:04 PM: Starting build script
9:56:05 PM: Detected 0 framework(s)
9:56:05 PM: Section completed: initializing
9:56:06 PM: ​
9:56:06 PM: Netlify Build
9:56:06 PM: ────────────────────────────────────────────────────────────────
9:56:06 PM: ​
9:56:06 PM: ❯ Version
9:56:06 PM: @netlify/build 29.35.1
9:56:06 PM: ​
9:56:06 PM: ❯ Flags
9:56:06 PM: baseRelDir: true
9:56:06 PM: buildId: 65d17fb0026f86104793aff2
9:56:06 PM: deployId: 65d17fb1941da90008b4999a
9:56:06 PM: ​
9:56:06 PM: ❯ Current directory
9:56:06 PM: /opt/build/repo
9:56:06 PM: ​
9:56:06 PM: ❯ Config file
9:56:06 PM: No config file was defined: using default values.
9:56:06 PM: ​
9:56:06 PM: ❯ Context
9:56:06 PM: production
9:56:06 PM: ​
9:56:06 PM: Build command from Netlify app
9:56:06 PM: ────────────────────────────────────────────────────────────────
9:56:06 PM: ​
9:56:06 PM: $ yarn develop
9:56:06 PM: yarn run v1.22.19
9:56:06 PM: $ strapi develop
9:56:07 PM: - Building build context
9:56:07 PM: [INFO] Including the following ENV variables as part of the JS bundle:
9:56:07 PM: - ADMIN_PATH
9:56:07 PM: - STRAPI_ADMIN_BACKEND_URL
9:56:07 PM: - STRAPI_TELEMETRY_DISABLED
9:56:07 PM: :heavy_check_mark: Building build context (70ms)
9:56:07 PM: - Creating admin
9:56:17 PM: :heavy_check_mark: Creating admin (9444ms)
9:56:18 PM: - Loading Strapi
9:56:18 PM: (node:5458) Warning: Error on attribute “sections” in model “txt-block” (api::txt-block.txt-block). Please modify your txt-block schema by renaming the key “inversedBy” to “mappedBy”. Ex: { “inversedBy”: “txtBlocks” } → { “mappedBy”: “txtBlocks” }
9:56:18 PM: (Use node --trace-warnings ... to show where the warning was created)
9:56:19 PM: Post processing - redirect rules
9:56:19 PM: Post processing done
9:56:19 PM: Section completed: postprocessing
9:56:19 PM: Post processing - header rules
9:56:19 PM: Starting post processing
9:56:19 PM: Skipping form detection
9:56:19 PM: [ERROR] There seems to be an unexpected error, try again with --debug for more information
9:56:19 PM:
9:56:19 PM: ┌──────────────────────────────────────────────────────────────────────────────┐│ ││ Error: Middleware “strapi::session”: App keys are required. Please set ││ app.keys in config/server.js (ex: keys: [“myKeyA”, “myKeyB”]) ││ at instantiateMiddleware (/opt/build/repo/node_modules/@strapi/strapi/di ││ st/services/server/middleware.js:13:13) ││ at Module.resolveMiddlewares (/opt/build/repo/node_modules/@strapi/strap ││ i/dist/services/server/middleware.js:43:18) ││ at registerApplicationMiddlewares (/opt/build/repo/node_modules/@strapi/ ││ strapi/dist/services/server/register-middlewares.js:44:40) ││ at async Object.initMiddlewares (/opt/build/repo/node_modules/@strapi/st ││ rapi/dist/services/server/index.js:69:7) ││ at async Strapi.bootstrap ││ (/opt/build/repo/node_modules/@strapi/strapi/dist/Strapi.js:417:5) ││ at async Strapi.load ││ (/opt/build/repo/node_modules/@strapi/strapi/dist/Strapi.js:426:5) ││ at async Object.develop (/opt/build/repo/node_modules/@strapi/admin/dist ││ /_chunks/index-sNH2VWbC.js:837:28) ││ at async develop (/opt/build/repo/node_modules/@strapi/admin/dist/_chunk ││ s/develop-YNTGWKMC.js:61:5) ││ at async Command.parseAsync ││ (/opt/build/repo/node_modules/commander/lib/command.js:923:5) ││ at async Module.runStrapiCommand (/opt/build/repo/node_modules/@strapi/s ││ trapi/dist/commands/index.js:130:3) ││ │└──────────────────────────────────────────────────────────────────────────────┘
9:56:19 PM: Done in 12.29s.
9:56:19 PM: ​
9:56:19 PM: (build.command completed in 12.4s)
9:56:19 PM: ​
9:56:19 PM: Deploy site
9:56:19 PM: ────────────────────────────────────────────────────────────────
9:56:19 PM: ​
9:56:19 PM: Starting to deploy site from “”
9:56:19 PM: Calculating files to upload
9:56:19 PM: 0 new files to upload
9:56:19 PM: 0 new functions to upload
9:56:19 PM: Section completed: deploying
9:56:19 PM: Site deploy was successfully initiated
9:56:19 PM: ​
9:56:19 PM: (Deploy site completed in 603ms)
9:56:19 PM: ​
9:56:19 PM: Netlify Build Complete
9:56:19 PM: ────────────────────────────────────────────────────────────────
9:56:19 PM: ​
9:56:19 PM: (Netlify Build completed in 13.1s)
9:56:20 PM: Site is live :sparkles:
9:56:20 PM: Caching artifacts
9:56:20 PM: Started saving node modules
9:56:20 PM: Finished saving node modules
9:56:20 PM: Started saving build plugins
9:56:20 PM: Finished saving build plugins
9:56:20 PM: Started saving corepack cache
9:56:20 PM: Finished saving corepack cache
9:56:20 PM: Started saving yarn cache
9:56:20 PM: Finished saving yarn cache
9:56:20 PM: Started saving pip cache
9:56:20 PM: Finished saving pip cache
9:56:20 PM: Started saving emacs cask dependencies
9:56:20 PM: Finished saving emacs cask dependencies
9:56:20 PM: Started saving maven dependencies
9:56:20 PM: Finished saving maven dependencies
9:56:20 PM: Started saving boot dependencies
9:56:20 PM: Finished saving boot dependencies
9:56:20 PM: Started saving rust rustup cache
9:56:20 PM: Finished saving rust rustup cache
9:56:20 PM: Started saving go dependencies
9:56:20 PM: Finished saving go dependencies
9:56:20 PM: Build script success
9:56:20 PM: Section completed: building
9:56:26 PM: Uploading Cache of size 1.1GB
9:56:32 PM: Section completed: cleanup
9:56:32 PM: Finished processing build request in 47.085s

Before I answer or say anything here, let me tell you that you’re actually doing us more bad than good by posting in so many different threads about the same issue. Either post in just one old thread or create just one new thread. Now we have to go through all those threads, link those here and all in all, do a counter-productive work about the same issue for the same person. This doesn’t help anyone. :slight_smile:

Just noticed that you’re not just on Netlify, but also posting in other places: n00bish bro can't follow along: unspecified information, file paths, what kind of hook to create. · Issue #12 · jclusso/strapi-plugin-netlify-deployments · GitHub. You’re making multiple people work on the singular issue that you’re seeing.

Is written and maintained by Strapi. We do not control its functionality.

Just to confirm, have you completed the steps mentioned on Strapi’s docs: Netlify Deployments | Strapi Market?

As far as the build error is concerned, I think this is related to a problem in the plugin’s package.json: strapi-plugin-netlify-deployments/package.json at master · jclusso/strapi-plugin-netlify-deployments (github.com). I don’t see any main field in their package.json: package.json | npm Docs (npmjs.com)

That’s the entry that would tell resolvers which file to resolve. Currently, when a resolver tries to look for this module, it doesn’t find anything as there’s no main and there’s no index.js either. So the error that you saw is returned. I don’t know if this plugin has ever worked, but this clearly sounds like a problem with the plugin.