grafana / plugin-tools

Create Grafana plugins with ease.
https://grafana.com/developers/plugin-tools/
Apache License 2.0
58 stars 32 forks source link

Revert "chore(deps): update dependency cookie to v1" #1325

Closed jackw closed 1 week ago

jackw commented 1 week ago

Reverts grafana/plugin-tools#1309

This removed cookie entirely and broke the docusaurus dev command npm run docs.

[ERROR] Error: Cannot find module 'cookie'
Require stack:
- /Users/jackwestbrook/dev/grafana/plugin-tools/node_modules/express/lib/response.js
- /Users/jackwestbrook/dev/grafana/plugin-tools/node_modules/express/lib/express.js
- /Users/jackwestbrook/dev/grafana/plugin-tools/node_modules/express/index.js
- /Users/jackwestbrook/dev/grafana/plugin-tools/node_modules/webpack-dev-server/lib/Server.js
- /Users/jackwestbrook/dev/grafana/plugin-tools/node_modules/@docusaurus/core/lib/commands/start/webpack.js
- /Users/jackwestbrook/dev/grafana/plugin-tools/node_modules/@docusaurus/core/lib/commands/start/start.js
- /Users/jackwestbrook/dev/grafana/plugin-tools/node_modules/@docusaurus/core/lib/index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
    at Module._load (node:internal/modules/cjs/loader:986:27)
    at Module.require (node:internal/modules/cjs/loader:1233:19)
    at require (node:internal/modules/helpers:179:18)
    at Object.<anonymous> (/Users/jackwestbrook/dev/grafana/plugin-tools/node_modules/express/lib/response.js:31:14)
    at Module._compile (node:internal/modules/cjs/loader:1358:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
    at Module.load (node:internal/modules/cjs/loader:1208:32)
    at Module._load (node:internal/modules/cjs/loader:1024:12)
    at Module.require (node:internal/modules/cjs/loader:1233:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/jackwestbrook/dev/grafana/plugin-tools/node_modules/express/lib/response.js',
    '/Users/jackwestbrook/dev/grafana/plugin-tools/node_modules/express/lib/express.js',
    '/Users/jackwestbrook/dev/grafana/plugin-tools/node_modules/express/index.js',
    '/Users/jackwestbrook/dev/grafana/plugin-tools/node_modules/webpack-dev-server/lib/Server.js',
    '/Users/jackwestbrook/dev/grafana/plugin-tools/node_modules/@docusaurus/core/lib/commands/start/webpack.js',
    '/Users/jackwestbrook/dev/grafana/plugin-tools/node_modules/@docusaurus/core/lib/commands/start/start.js',
    '/Users/jackwestbrook/dev/grafana/plugin-tools/node_modules/@docusaurus/core/lib/index.js'
  ]
}
[INFO] Docusaurus version: 3.6.0
Node version: v20.16.0
npm error Lifecycle script `start` failed with error:
npm error code 1
npm error path /Users/jackwestbrook/dev/grafana/plugin-tools/docusaurus/website
npm error workspace website@3.5.0
npm error location /Users/jackwestbrook/dev/grafana/plugin-tools/docusaurus/website
npm error command failed
npm error command sh -c docusaurus start

—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

 NX   Running target start for project website failed
github-actions[bot] commented 1 week ago

Hello! 👋 This repository uses Auto for releasing packages using PR labels.

✨ This PR can be merged. It will not be considered when calculating future versions of the npm packages and will not appear in the changelogs.