Skip to content

Server not starting up locally #11421

@PyvesB

Description

@PyvesB

When running npm start locally, I'm getting the following error:

[frontend] [SUCCESS] Docusaurus website is running at: http://localhost:3000/
[frontend] 
[frontend] [ERROR] ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
[frontend]  - options.proxy should be an array:
[frontend]    [object { ... } | function, ...]
[frontend]    -> Allows to proxy requests, can be useful when you have a separate API backend development server and you want to send API requests on the same domain.
[frontend]    -> Read more at https://webpack.js.org/configuration/dev-server/#devserverproxy
[frontend]     at validate (/Users/pierreyves.bigourdan/go/src/github.com/DataDog/workspace-shields/shields/node_modules/schema-utils/dist/validate.js:166:11)
[frontend]     at new Server (/Users/pierreyves.bigourdan/go/src/github.com/DataDog/workspace-shields/shields/node_modules/webpack-dev-server/lib/Server.js:327:5)
[frontend]     at createWebpackDevServer (/Users/pierreyves.bigourdan/go/src/github.com/DataDog/workspace-shields/shields/node_modules/@docusaurus/core/lib/commands/start/webpack.js:137:12)
[frontend]     at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
[frontend]     at async doStart (/Users/pierreyves.bigourdan/go/src/github.com/DataDog/workspace-shields/shields/node_modules/@docusaurus/core/lib/commands/start/start.js:31:23)
[frontend]     at async Promise.all (index 0)
[frontend]     at async runCLI (/Users/pierreyves.bigourdan/go/src/github.com/DataDog/workspace-shields/shields/node_modules/@docusaurus/core/lib/commands/cli.js:56:5)
[frontend]     at async file:///Users/pierreyves.bigourdan/go/src/github.com/DataDog/workspace-shields/shields/node_modules/@docusaurus/core/bin/docusaurus.mjs:44:3 {
[frontend]   errors: [
[frontend]     {
[frontend]       instancePath: '/proxy',
[frontend]       schemaPath: '#/definitions/Proxy/type',
[frontend]       keyword: 'type',
[frontend]       params: { type: 'array' },
[frontend]       message: 'must be array',
[frontend]       schema: 'array',
[frontend]       parentSchema: {
[frontend]         type: 'array',
[frontend]         items: { anyOf: [ { type: 'object' }, { instanceof: 'Function' } ] },
[frontend]         description: 'Allows to proxy requests, can be useful when you have a separate API backend development server and you want to send API requests on the same domain.',
[frontend]         link: 'https://webpack.js.org/configuration/dev-server/#devserverproxy'
[frontend]       },
[frontend]       data: { id: 'default' }
[frontend]     }
[frontend]   ],

@jNullj is this working for you? I hadn't started the server up locally in some time, so I don't know when this may have broken.

Metadata

Metadata

Assignees

No one assigned

    Labels

    developer-experienceDev tooling, test framework, and CIneeds-upstream-helpNot actionable without help from a service provider

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions