backstage: Scaffolding failing on @gitbeaker dependency
π Description
When i start a newly built plugin, it breaks at the very start
Now using node v18.18.2 (npm v9.8.1)
pmishra7@HCFGQJ690V hackathon-24 % npx @backstage/create-app@latest
? Enter a name for the app [required] backstage
Creating the app...
Checking if the directory is available:
checking backstage β
Creating a temporary app directory:
Preparing files:
copying .dockerignore β
templating .eslintrc.js.hbs β
templating .gitignore.hbs β
copying .prettierignore β
copying README.md β
copying app-config.local.yaml β
copying .eslintignore β
copying app-config.production.yaml β
templating app-config.yaml.hbs β
templating backstage.json.hbs β
templating catalog-info.yaml.hbs β
copying playwright.config.ts β
copying tsconfig.json β
copying yarn.lock β
templating package.json.hbs β
copying lerna.json β
copying README.md β
copying entities.yaml β
copying org.yaml β
copying template.yaml β
copying catalog-info.yaml β
copying index.js β
copying package.json β
copying README.md β
templating .eslintrc.js.hbs β
copying Dockerfile β
copying README.md β
templating package.json.hbs β
copying index.ts β
copying types.ts β
copying index.test.ts β
copying auth.ts β
copying app.ts β
copying catalog.ts β
copying proxy.ts β
copying scaffolder.ts β
templating search.ts.hbs β
copying techdocs.ts β
copying .eslintignore β
templating .eslintrc.js.hbs β
templating package.json.hbs β
copying app.test.ts β
copying android-chrome-192x192.png β
copying apple-touch-icon.png β
copying favicon-16x16.png β
copying favicon-32x32.png β
copying favicon.ico β
copying manifest.json β
copying index.html β
copying robots.txt β
copying safari-pinned-tab.svg β
copying App.test.tsx β
copying App.tsx β
copying apis.ts β
copying setupTests.ts β
copying index.tsx β
copying LogoFull.tsx β
copying LogoIcon.tsx β
copying index.ts β
copying Root.tsx β
copying EntityPage.tsx β
copying SearchPage.tsx β
Moving to final location:
moving backstage β
init git repository β
Installing dependencies:
init git repository β
determining yarn version β
executing yarn install β
executing yarn tsc β
π₯ Successfully created backstage
All set! Now you might want to:
Run the app: cd backstage && yarn dev
Set up the software catalog: https://backstage.io/docs/features/software-catalog/configuration
Add authentication: https://backstage.io/docs/auth/
pmishra7@HCFGQJ690V hackathon-24 % cd backstage
pmishra7@HCFGQJ690V backstage % ls
README.md app-config.yaml dist-types node_modules playwright.config.ts yarn.lock
app-config.local.yaml backstage.json examples package.json plugins
app-config.production.yaml catalog-info.yaml lerna.json packages tsconfig.json
pmishra7@HCFGQJ690V backstage % yarn dev
yarn run v1.22.19
$ concurrently "yarn start" "yarn start-backend"
$ yarn workspace backend start
$ yarn workspace app start
$ backstage-cli package start
$ backstage-cli package start
[0] Loaded config from app-config.yaml
[0] <i> [webpack-dev-server] Project is running at:
[0] <i> [webpack-dev-server] Loopback: http://localhost:3000/, http://127.0.0.1:3000/
[0] <i> [webpack-dev-server] Content not from webpack is served from '/Users/pmishra7/Documents/repos/hackathon-24/backstage/packages/app/public' directory
[0] <i> [webpack-dev-server] 404s will fallback to '/index.html'
[0] <i> [webpack-dev-middleware] wait until bundle finished: /
[1] node:internal/modules/cjs/loader:1098
[1] const err = new Error(`Cannot find module '${request}'`);
[1] ^
[1]
[1] Error: Cannot find module '/Users/pmishra7/Documents/repos/hackathon-24/backstage/node_modules/@gitbeaker/rest/dist/index.js'
[1] at createEsmNotFoundErr (node:internal/modules/cjs/loader:1098:15)
[1] at finalizeEsmResolution (node:internal/modules/cjs/loader:1091:15)
[1] at resolveExports (node:internal/modules/cjs/loader:567:14)
[1] at Module._findPath (node:internal/modules/cjs/loader:636:31)
[1] at Module._resolveFilename (node:internal/modules/cjs/loader:1063:27)
[1] at a._resolveFilename (/Users/pmishra7/Documents/repos/hackathon-24/backstage/node_modules/tsx/dist/cjs/index.cjs:1:1729)
[1] at Module._load (node:internal/modules/cjs/loader:922:27)
[1] at Module.require (node:internal/modules/cjs/loader:1143:19)
[1] at require (node:internal/modules/cjs/helpers:119:18)
[1] at Object.<anonymous> (/Users/pmishra7/Documents/repos/hackathon-24/backstage/node_modules/@backstage/plugin-scaffolder-backend-module-gitlab/dist/index.cjs.js:9:12)
[1] at Module._compile (node:internal/modules/cjs/loader:1256:14)
[1] at Object.S (/Users/pmishra7/Documents/repos/hackathon-24/backstage/node_modules/tsx/dist/cjs/index.cjs:1:1292)
[1] at Module.load (node:internal/modules/cjs/loader:1119:32)
[1] at Module._load (node:internal/modules/cjs/loader:960:12)
[1] at Module.require (node:internal/modules/cjs/loader:1143:19)
[1] at require (node:internal/modules/cjs/helpers:119:18) {
[1] code: 'MODULE_NOT_FOUND',
[1] path: '/Users/pmishra7/Documents/repos/hackathon-24/backstage/node_modules/@gitbeaker/rest/package.json'
[1] }
[1]
[1] Node.js v18.18.2
[0] webpack compiled successfully
^C[0] <i> [webpack-dev-server] Gracefully shutting down. To force exit, press ^C again. Please wait...
pmishra7@HCFGQJ690V backstage % [1] yarn start-backend exited with code SIGINT
[0] yarn start exited with code SIGINT
nvm ^C
pmishra7@HCFGQJ690V backstage % npm --version
9.8.1
pmishra7@HCFGQJ690V backstage % node --version
v18.18.2
Similar issue: https://github.com/backstage/backstage/issues/5980
π Expected behavior
Should start the application
π Actual Behavior with Screenshots
π Reproduction steps
npx @backstage/create-app@latest
cd backstage
yarn dev
π Provide the context for the Bug.
No response
π₯οΈ Your Environment
No response
π Have you spent some time to check if this bug has been raised before?
- I checked and didnβt find similar issue
π’ Have you read the Code of Conduct?
- I have read the Code of Conduct
Are you willing to submit PR?
None
About this issue
- Original URL
- State: closed
- Created 5 months ago
- Reactions: 6
- Comments: 28 (4 by maintainers)
@giocolas Thatβs because the team behind that library released a fixed version.
Thanks @awanlin , @jdalrymple . This is working now!!! Will post here if i find any further issues.
The issue was a pipeline problem, not a code problem, but ill keep an eye out throughout the day just in case you guys notice anything awry
Can you all try the new version? https://github.com/jdalrymple/gitbeaker/releases/tag/39.34.0
No worries, sorry going back to older versions of the various
@gitbeakerpackages. But I really donβt know if thatβs going to help π¦adding resolutions partially fix the problem
i need to add all 3 libs to fix missing file problem
but now there is another one