PaloAltoNetworks / docusaurus-openapi-docs

🦝 OpenAPI plugin for generating API reference docs in Docusaurus v3.
https://docusaurus-openapi.tryingpan.dev
MIT License
713 stars 238 forks source link

Export was not found (possible exports: __esModule) #607

Closed bonimart closed 1 year ago

bonimart commented 1 year ago

Describe the bug

I have tried both v1.7.3 and v2.0.0-beta.3. For the former, I downgraded to docusaurus 2.2.0. For the latter, I set the overrides for react-live instead of upgrading to React 18. For both versions, I managed to get the plugin working using npm run docusaurus start, but I got some warnings when running npm run docusaurus build, which result in the right tab of the API docs not working properly.

Expected behavior

The build passes without warnings

Current behavior

The build passes, but generates a ton of warnings, which result in the plugin not working properly

The error message is ({path-to-project} is absolute path to the repo). I'm submitting the messages for both versions because there seems to be a similar problem.

v1.7.3:

[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!{path-to-project}/node_modules/docusaurus-theme-openapi-docs/lib-next/theme/ParamsItem/index.js","moduleName":"./node_modules/docusaurus-theme-openapi-docs/lib-next/theme/ParamsItem/index.js","loc":"6:1089-1094","message":"export 'guard' (imported as 'guard') was not found in 'docusaurus-theme-openapi-docs/lib/markdown/utils' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!{path-to-project}/node_modules/docusaurus-theme-openapi-docs/lib-next/theme/ParamsItem/index.js","moduleName":"./node_modules/docusaurus-theme-openapi-docs/lib-next/theme/ParamsItem/index.js","loc":"6:1250-1255","message":"export 'guard' (imported as 'guard') was not found in 'docusaurus-theme-openapi-docs/lib/markdown/utils' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!{path-to-project}/node_modules/docusaurus-theme-openapi-docs/lib-next/theme/ParamsItem/index.js","moduleName":"./node_modules/docusaurus-theme-openapi-docs/lib-next/theme/ParamsItem/index.js","loc":"6:1391-1396","message":"export 'guard' (imported as 'guard') was not found in 'docusaurus-theme-openapi-docs/lib/markdown/utils' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!{path-to-project}/node_modules/docusaurus-theme-openapi-docs/lib-next/theme/ParamsItem/index.js","moduleName":"./node_modules/docusaurus-theme-openapi-docs/lib-next/theme/ParamsItem/index.js","loc":"6:1631-1636","message":"export 'guard' (imported as 'guard') was not found in 'docusaurus-theme-openapi-docs/lib/markdown/utils' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!{path-to-project}/node_modules/docusaurus-theme-openapi-docs/lib-next/theme/ParamsItem/index.js","moduleName":"./node_modules/docusaurus-theme-openapi-docs/lib-next/theme/ParamsItem/index.js","loc":"6:2330-2335","message":"export 'guard' (imported as 'guard') was not found in 'docusaurus-theme-openapi-docs/lib/markdown/utils' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!{path-to-project}/node_modules/docusaurus-theme-openapi-docs/lib-next/theme/ParamsItem/index.js","moduleName":"./node_modules/docusaurus-theme-openapi-docs/lib-next/theme/ParamsItem/index.js","loc":"6:2590-2595","message":"export 'guard' (imported as 'guard') was not found in 'docusaurus-theme-openapi-docs/lib/markdown/utils' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!{path-to-project}/node_modules/docusaurus-theme-openapi-docs/lib-next/theme/ParamsItem/index.js","moduleName":"./node_modules/docusaurus-theme-openapi-docs/lib-next/theme/ParamsItem/index.js","loc":"6:2596-2604","message":"export 'toString' (imported as 'toString') was not found in 'docusaurus-theme-openapi-docs/lib/markdown/utils' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!{path-to-project}/node_modules/docusaurus-theme-openapi-docs/lib-next/theme/ParamsItem/index.js","moduleName":"./node_modules/docusaurus-theme-openapi-docs/lib-next/theme/ParamsItem/index.js","loc":"6:2773-2778","message":"export 'guard' (imported as 'guard') was not found in 'docusaurus-theme-openapi-docs/lib/markdown/utils' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!{path-to-project}/node_modules/docusaurus-theme-openapi-docs/lib-next/theme/SchemaItem/index.js","moduleName":"./node_modules/docusaurus-theme-openapi-docs/lib-next/theme/SchemaItem/index.js","loc":"6:1007-1012","message":"export 'guard' (imported as 'guard') was not found in 'docusaurus-theme-openapi-docs/lib/markdown/utils' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!{path-to-project}/node_modules/docusaurus-theme-openapi-docs/lib-next/theme/SchemaItem/index.js","moduleName":"./node_modules/docusaurus-theme-openapi-docs/lib-next/theme/SchemaItem/index.js","loc":"6:1194-1199","message":"export 'guard' (imported as 'guard') was not found in 'docusaurus-theme-openapi-docs/lib/markdown/utils' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!{path-to-project}/node_modules/docusaurus-theme-openapi-docs/lib-next/theme/SchemaItem/index.js","moduleName":"./node_modules/docusaurus-theme-openapi-docs/lib-next/theme/SchemaItem/index.js","loc":"6:1337-1342","message":"export 'guard' (imported as 'guard') was not found in 'docusaurus-theme-openapi-docs/lib/markdown/utils' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!{path-to-project}/node_modules/docusaurus-theme-openapi-docs/lib-next/theme/SchemaItem/index.js","moduleName":"./node_modules/docusaurus-theme-openapi-docs/lib-next/theme/SchemaItem/index.js","loc":"6:1483-1488","message":"export 'guard' (imported as 'guard') was not found in 'docusaurus-theme-openapi-docs/lib/markdown/utils' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!{path-to-project}/node_modules/docusaurus-theme-openapi-docs/lib-next/theme/SchemaItem/index.js","moduleName":"./node_modules/docusaurus-theme-openapi-docs/lib-next/theme/SchemaItem/index.js","loc":"6:2192-2197","message":"export 'guard' (imported as 'guard') was not found in 'docusaurus-theme-openapi-docs/lib/markdown/utils' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!{path-to-project}/node_modules/docusaurus-theme-openapi-docs/lib-next/theme/SchemaItem/index.js","moduleName":"./node_modules/docusaurus-theme-openapi-docs/lib-next/theme/SchemaItem/index.js","loc":"6:2459-2464","message":"export 'guard' (imported as 'guard') was not found in 'docusaurus-theme-openapi-docs/lib/markdown/utils' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!{path-to-project}/node_modules/docusaurus-theme-openapi-docs/lib-next/theme/SchemaItem/index.js","moduleName":"./node_modules/docusaurus-theme-openapi-docs/lib-next/theme/SchemaItem/index.js","loc":"6:2465-2473","message":"export 'toString' (imported as 'toString') was not found in 'docusaurus-theme-openapi-docs/lib/markdown/utils' (possible exports: __esModule)","compilerPath":"client"}

v2.0.0-beta.3:

[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!{path-to-project}/node_modules/docusaurus-theme-openapi-docs/lib/theme/ParamsItem/index.js","moduleName":"./node_modules/docusaurus-theme-openapi-docs/lib/theme/ParamsItem/index.js","loc":"6:1049-1054","message":"export 'guard' (imported as 'guard') was not found in 'docusaurus-theme-openapi-docs/lib/markdown/utils' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!{path-to-project}/node_modules/docusaurus-theme-openapi-docs/lib/theme/ParamsItem/index.js","moduleName":"./node_modules/docusaurus-theme-openapi-docs/lib/theme/ParamsItem/index.js","loc":"6:1215-1220","message":"export 'guard' (imported as 'guard') was not found in 'docusaurus-theme-openapi-docs/lib/markdown/utils' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!{path-to-project}/node_modules/docusaurus-theme-openapi-docs/lib/theme/ParamsItem/index.js","moduleName":"./node_modules/docusaurus-theme-openapi-docs/lib/theme/ParamsItem/index.js","loc":"6:1358-1363","message":"export 'guard' (imported as 'guard') was not found in 'docusaurus-theme-openapi-docs/lib/markdown/utils' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!{path-to-project}/node_modules/docusaurus-theme-openapi-docs/lib/theme/ParamsItem/index.js","moduleName":"./node_modules/docusaurus-theme-openapi-docs/lib/theme/ParamsItem/index.js","loc":"6:1598-1603","message":"export 'guard' (imported as 'guard') was not found in 'docusaurus-theme-openapi-docs/lib/markdown/utils' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!{path-to-project}/node_modules/docusaurus-theme-openapi-docs/lib/theme/ParamsItem/index.js","moduleName":"./node_modules/docusaurus-theme-openapi-docs/lib/theme/ParamsItem/index.js","loc":"6:2297-2302","message":"export 'guard' (imported as 'guard') was not found in 'docusaurus-theme-openapi-docs/lib/markdown/utils' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!{path-to-project}/node_modules/docusaurus-theme-openapi-docs/lib/theme/ParamsItem/index.js","moduleName":"./node_modules/docusaurus-theme-openapi-docs/lib/theme/ParamsItem/index.js","loc":"6:2557-2562","message":"export 'guard' (imported as 'guard') was not found in 'docusaurus-theme-openapi-docs/lib/markdown/utils' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!{path-to-project}/node_modules/docusaurus-theme-openapi-docs/lib/theme/ParamsItem/index.js","moduleName":"./node_modules/docusaurus-theme-openapi-docs/lib/theme/ParamsItem/index.js","loc":"6:2563-2571","message":"export 'toString' (imported as 'toString') was not found in 'docusaurus-theme-openapi-docs/lib/markdown/utils' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!{path-to-project}/node_modules/docusaurus-theme-openapi-docs/lib/theme/ParamsItem/index.js","moduleName":"./node_modules/docusaurus-theme-openapi-docs/lib/theme/ParamsItem/index.js","loc":"6:2740-2745","message":"export 'guard' (imported as 'guard') was not found in 'docusaurus-theme-openapi-docs/lib/markdown/utils' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!{path-to-project}/node_modules/docusaurus-theme-openapi-docs/lib/theme/SchemaItem/index.js","moduleName":"./node_modules/docusaurus-theme-openapi-docs/lib/theme/SchemaItem/index.js","loc":"6:948-953","message":"export 'guard' (imported as 'guard') was not found in 'docusaurus-theme-openapi-docs/lib/markdown/utils' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!{path-to-project}/node_modules/docusaurus-theme-openapi-docs/lib/theme/SchemaItem/index.js","moduleName":"./node_modules/docusaurus-theme-openapi-docs/lib/theme/SchemaItem/index.js","loc":"6:1143-1148","message":"export 'guard' (imported as 'guard') was not found in 'docusaurus-theme-openapi-docs/lib/markdown/utils' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!{path-to-project}/node_modules/docusaurus-theme-openapi-docs/lib/theme/SchemaItem/index.js","moduleName":"./node_modules/docusaurus-theme-openapi-docs/lib/theme/SchemaItem/index.js","loc":"6:1294-1299","message":"export 'guard' (imported as 'guard') was not found in 'docusaurus-theme-openapi-docs/lib/markdown/utils' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!{path-to-project}/node_modules/docusaurus-theme-openapi-docs/lib/theme/SchemaItem/index.js","moduleName":"./node_modules/docusaurus-theme-openapi-docs/lib/theme/SchemaItem/index.js","loc":"6:1448-1453","message":"export 'guard' (imported as 'guard') was not found in 'docusaurus-theme-openapi-docs/lib/markdown/utils' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!{path-to-project}/node_modules/docusaurus-theme-openapi-docs/lib/theme/SchemaItem/index.js","moduleName":"./node_modules/docusaurus-theme-openapi-docs/lib/theme/SchemaItem/index.js","loc":"6:2157-2162","message":"export 'guard' (imported as 'guard') was not found in 'docusaurus-theme-openapi-docs/lib/markdown/utils' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!{path-to-project}/node_modules/docusaurus-theme-openapi-docs/lib/theme/SchemaItem/index.js","moduleName":"./node_modules/docusaurus-theme-openapi-docs/lib/theme/SchemaItem/index.js","loc":"6:2387-2392","message":"export 'guard' (imported as 'guard') was not found in 'docusaurus-theme-openapi-docs/lib/markdown/utils' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[8].use[0]!{path-to-project}/node_modules/@docusaurus/mdx-loader/lib/index.js??ruleSet[1].rules[8].use[1]!{path-to-project}/node_modules/@docusaurus/plugin-content-docs/lib/markdown/index.js??ruleSet[1].rules[8].use[2]!{path-to-project}/docs/api/add-pet.api.mdx","moduleName":"./docs/api/add-pet.api.mdx","loc":"1:8372-8387","message":"export 'default' (imported as 'SecuritySchemes') was not found in '@theme/ApiDemoPanel/SecuritySchemes' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[8].use[0]!{path-to-project}/node_modules/@docusaurus/mdx-loader/lib/index.js??ruleSet[1].rules[8].use[1]!{path-to-project}/node_modules/@docusaurus/plugin-content-docs/lib/markdown/index.js??ruleSet[1].rules[8].use[2]!{path-to-project}/docs/api/create-user.api.mdx","moduleName":"./docs/api/create-user.api.mdx","loc":"1:6350-6365","message":"export 'default' (imported as 'SecuritySchemes') was not found in '@theme/ApiDemoPanel/SecuritySchemes' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[8].use[0]!{path-to-project}/node_modules/@docusaurus/mdx-loader/lib/index.js??ruleSet[1].rules[8].use[1]!{path-to-project}/node_modules/@docusaurus/plugin-content-docs/lib/markdown/index.js??ruleSet[1].rules[8].use[2]!{path-to-project}/docs/api/create-users-with-array-input.api.mdx","moduleName":"./docs/api/create-users-with-array-input.api.mdx","loc":"1:6704-6719","message":"export 'default' (imported as 'SecuritySchemes') was not found in '@theme/ApiDemoPanel/SecuritySchemes' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[8].use[0]!{path-to-project}/node_modules/@docusaurus/mdx-loader/lib/index.js??ruleSet[1].rules[8].use[1]!{path-to-project}/node_modules/@docusaurus/plugin-content-docs/lib/markdown/index.js??ruleSet[1].rules[8].use[2]!{path-to-project}/docs/api/create-users-with-list-input.api.mdx","moduleName":"./docs/api/create-users-with-list-input.api.mdx","loc":"1:6682-6697","message":"export 'default' (imported as 'SecuritySchemes') was not found in '@theme/ApiDemoPanel/SecuritySchemes' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[8].use[0]!{path-to-project}/node_modules/@docusaurus/mdx-loader/lib/index.js??ruleSet[1].rules[8].use[1]!{path-to-project}/node_modules/@docusaurus/plugin-content-docs/lib/markdown/index.js??ruleSet[1].rules[8].use[2]!{path-to-project}/docs/api/delete-order.api.mdx","moduleName":"./docs/api/delete-order.api.mdx","loc":"1:6495-6510","message":"export 'default' (imported as 'SecuritySchemes') was not found in '@theme/ApiDemoPanel/SecuritySchemes' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[8].use[0]!{path-to-project}/node_modules/@docusaurus/mdx-loader/lib/index.js??ruleSet[1].rules[8].use[1]!{path-to-project}/node_modules/@docusaurus/plugin-content-docs/lib/markdown/index.js??ruleSet[1].rules[8].use[2]!{path-to-project}/docs/api/delete-pet.api.mdx","moduleName":"./docs/api/delete-pet.api.mdx","loc":"1:5876-5891","message":"export 'default' (imported as 'SecuritySchemes') was not found in '@theme/ApiDemoPanel/SecuritySchemes' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[8].use[0]!{path-to-project}/node_modules/@docusaurus/mdx-loader/lib/index.js??ruleSet[1].rules[8].use[1]!{path-to-project}/node_modules/@docusaurus/plugin-content-docs/lib/markdown/index.js??ruleSet[1].rules[8].use[2]!{path-to-project}/docs/api/delete-user.api.mdx","moduleName":"./docs/api/delete-user.api.mdx","loc":"1:5699-5714","message":"export 'default' (imported as 'SecuritySchemes') was not found in '@theme/ApiDemoPanel/SecuritySchemes' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[8].use[0]!{path-to-project}/node_modules/@docusaurus/mdx-loader/lib/index.js??ruleSet[1].rules[8].use[1]!{path-to-project}/node_modules/@docusaurus/plugin-content-docs/lib/markdown/index.js??ruleSet[1].rules[8].use[2]!{path-to-project}/docs/api/find-pets-by-status.api.mdx","moduleName":"./docs/api/find-pets-by-status.api.mdx","loc":"1:9315-9330","message":"export 'default' (imported as 'SecuritySchemes') was not found in '@theme/ApiDemoPanel/SecuritySchemes' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[8].use[0]!{path-to-project}/node_modules/@docusaurus/mdx-loader/lib/index.js??ruleSet[1].rules[8].use[1]!{path-to-project}/node_modules/@docusaurus/plugin-content-docs/lib/markdown/index.js??ruleSet[1].rules[8].use[2]!{path-to-project}/docs/api/find-pets-by-tags.api.mdx","moduleName":"./docs/api/find-pets-by-tags.api.mdx","loc":"1:9220-9235","message":"export 'default' (imported as 'SecuritySchemes') was not found in '@theme/ApiDemoPanel/SecuritySchemes' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[8].use[0]!{path-to-project}/node_modules/@docusaurus/mdx-loader/lib/index.js??ruleSet[1].rules[8].use[1]!{path-to-project}/node_modules/@docusaurus/plugin-content-docs/lib/markdown/index.js??ruleSet[1].rules[8].use[2]!{path-to-project}/docs/api/get-inventory.api.mdx","moduleName":"./docs/api/get-inventory.api.mdx","loc":"1:5985-6000","message":"export 'default' (imported as 'SecuritySchemes') was not found in '@theme/ApiDemoPanel/SecuritySchemes' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[8].use[0]!{path-to-project}/node_modules/@docusaurus/mdx-loader/lib/index.js??ruleSet[1].rules[8].use[1]!{path-to-project}/node_modules/@docusaurus/plugin-content-docs/lib/markdown/index.js??ruleSet[1].rules[8].use[2]!{path-to-project}/docs/api/get-order-by-id.api.mdx","moduleName":"./docs/api/get-order-by-id.api.mdx","loc":"1:8036-8051","message":"export 'default' (imported as 'SecuritySchemes') was not found in '@theme/ApiDemoPanel/SecuritySchemes' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[8].use[0]!{path-to-project}/node_modules/@docusaurus/mdx-loader/lib/index.js??ruleSet[1].rules[8].use[1]!{path-to-project}/node_modules/@docusaurus/plugin-content-docs/lib/markdown/index.js??ruleSet[1].rules[8].use[2]!{path-to-project}/docs/api/get-pet-by-id.api.mdx","moduleName":"./docs/api/get-pet-by-id.api.mdx","loc":"1:8794-8809","message":"export 'default' (imported as 'SecuritySchemes') was not found in '@theme/ApiDemoPanel/SecuritySchemes' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[8].use[0]!{path-to-project}/node_modules/@docusaurus/mdx-loader/lib/index.js??ruleSet[1].rules[8].use[1]!{path-to-project}/node_modules/@docusaurus/plugin-content-docs/lib/markdown/index.js??ruleSet[1].rules[8].use[2]!{path-to-project}/docs/api/get-user-by-name.api.mdx","moduleName":"./docs/api/get-user-by-name.api.mdx","loc":"1:7232-7247","message":"export 'default' (imported as 'SecuritySchemes') was not found in '@theme/ApiDemoPanel/SecuritySchemes' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[8].use[0]!{path-to-project}/node_modules/@docusaurus/mdx-loader/lib/index.js??ruleSet[1].rules[8].use[1]!{path-to-project}/node_modules/@docusaurus/plugin-content-docs/lib/markdown/index.js??ruleSet[1].rules[8].use[2]!{path-to-project}/docs/api/login-user.api.mdx","moduleName":"./docs/api/login-user.api.mdx","loc":"1:6722-6737","message":"export 'default' (imported as 'SecuritySchemes') was not found in '@theme/ApiDemoPanel/SecuritySchemes' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[8].use[0]!{path-to-project}/node_modules/@docusaurus/mdx-loader/lib/index.js??ruleSet[1].rules[8].use[1]!{path-to-project}/node_modules/@docusaurus/plugin-content-docs/lib/markdown/index.js??ruleSet[1].rules[8].use[2]!{path-to-project}/docs/api/logout-user.api.mdx","moduleName":"./docs/api/logout-user.api.mdx","loc":"1:4939-4954","message":"export 'default' (imported as 'SecuritySchemes') was not found in '@theme/ApiDemoPanel/SecuritySchemes' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[8].use[0]!{path-to-project}/node_modules/@docusaurus/mdx-loader/lib/index.js??ruleSet[1].rules[8].use[1]!{path-to-project}/node_modules/@docusaurus/plugin-content-docs/lib/markdown/index.js??ruleSet[1].rules[8].use[2]!{path-to-project}/docs/api/place-order.api.mdx","moduleName":"./docs/api/place-order.api.mdx","loc":"1:7914-7929","message":"export 'default' (imported as 'SecuritySchemes') was not found in '@theme/ApiDemoPanel/SecuritySchemes' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[8].use[0]!{path-to-project}/node_modules/@docusaurus/mdx-loader/lib/index.js??ruleSet[1].rules[8].use[1]!{path-to-project}/node_modules/@docusaurus/plugin-content-docs/lib/markdown/index.js??ruleSet[1].rules[8].use[2]!{path-to-project}/docs/api/update-pet-with-form.api.mdx","moduleName":"./docs/api/update-pet-with-form.api.mdx","loc":"1:6466-6481","message":"export 'default' (imported as 'SecuritySchemes') was not found in '@theme/ApiDemoPanel/SecuritySchemes' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[8].use[0]!{path-to-project}/node_modules/@docusaurus/mdx-loader/lib/index.js??ruleSet[1].rules[8].use[1]!{path-to-project}/node_modules/@docusaurus/plugin-content-docs/lib/markdown/index.js??ruleSet[1].rules[8].use[2]!{path-to-project}/docs/api/update-pet.api.mdx","moduleName":"./docs/api/update-pet.api.mdx","loc":"1:8547-8562","message":"export 'default' (imported as 'SecuritySchemes') was not found in '@theme/ApiDemoPanel/SecuritySchemes' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[8].use[0]!{path-to-project}/node_modules/@docusaurus/mdx-loader/lib/index.js??ruleSet[1].rules[8].use[1]!{path-to-project}/node_modules/@docusaurus/plugin-content-docs/lib/markdown/index.js??ruleSet[1].rules[8].use[2]!{path-to-project}/docs/api/update-user.api.mdx","moduleName":"./docs/api/update-user.api.mdx","loc":"1:7065-7080","message":"export 'default' (imported as 'SecuritySchemes') was not found in '@theme/ApiDemoPanel/SecuritySchemes' (possible exports: __esModule)","compilerPath":"client"}
[WARNING] {"moduleIdentifier":"{path-to-project}/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[8].use[0]!{path-to-project}/node_modules/@docusaurus/mdx-loader/lib/index.js??ruleSet[1].rules[8].use[1]!{path-to-project}/node_modules/@docusaurus/plugin-content-docs/lib/markdown/index.js??ruleSet[1].rules[8].use[2]!{path-to-project}/docs/api/upload-file.api.mdx","moduleName":"./docs/api/upload-file.api.mdx","loc":"1:6614-6629","message":"export 'default' (imported as 'SecuritySchemes') was not found in '@theme/ApiDemoPanel/SecuritySchemes' (possible exports: __esModule)","compilerPath":"client"}

Steps to reproduce

  1. Install the plugin
  2. Add the following API: https://petstore.swagger.io/v2/swagger.json
  3. run npm run docusaurus serve --build or `npm run docusaurus build

Screenshots

For v1.7.3

after npm run docusaurus start:

image

after npm run docusaurus serve --build:

image

Your Environment

package.json (for v1.7.3)

  "dependencies": {
    "@docusaurus/core": ">=2.0.1 <2.3.0",
    "@docusaurus/plugin-client-redirects": ">=2.0.1 <2.3.0",
    "@docusaurus/preset-classic": ">=2.0.1 <2.3.0",
    "@easyops-cn/docusaurus-search-local": "^0.30.2",
    "@mdx-js/react": "^1.6.22",
    "clean": "^4.0.2",
    "clsx": "^1.1.1",
    "docusaurus-gtm-plugin": "0.0.2",
    "docusaurus-plugin-openapi-docs": "^1.7.3",
    "docusaurus-theme-openapi-docs": "^1.7.3",
    "install": "^0.13.0",
    "react": "^17.0.2",
    "react-dom": "^17.0.2",
    "react-image-gallerie": "^1.1.0",
    "react-zoom-pan-pinch": "^2.1.3",
    "redux": "^4.0.5",
    "stx-react-filterable-table": "^0.1.1",
    "video-react": "0.15.0",
    "webpack": "^5.54.0",
    "webpack-cli": "^4.8.0"
  },
welcome-to-palo-alto-networks[bot] commented 1 year ago

:tada: Thanks for opening your first issue here! Welcome to the community!

bonimart commented 1 year ago

Unfortunately, I didn't find out the culprit, creating a blank docusaurus project and copy-pasting most of our repo fixed the issue, therefore I'm closing the bug.

SirPhemmiey commented 4 months ago

Hi @bonimart, i am facing this issue as well and copy-pasting doesn't seem to work for me

SirPhemmiey commented 4 months ago

@bonimart I'd also like to know your versions

cristimc8 commented 2 months ago

I'm also facing this issue with docusaurus@3.5.2 and openapi-docs 4.0.1. The error is only triggered when docusaurus-theme-openapi-docs is added to themes