#Bumped to 1.6.0 swc-loader module not found

4 messages · Page 1 of 1 (latest)

hot yew
#

Just did a version:bump to 1.6.0. running yarn install swc-loader reports its already available. Yet when I try to start the app locally I get a Module Not Found error on it:

afalco@IT-USA-VX0381 backstage-indeed % yarn run dev                 
yarn run v1.22.19
$ concurrently "yarn start" "yarn start-backend"
$ yarn workspace app start
$ yarn workspace backend start
$ backstage-cli package start
$ backstage-cli package start
[1] Build succeeded
[0] Loaded config from app-config.yaml, app-config.local.yaml
[0] Browserslist: caniuse-lite is outdated. Please run:
[0]   npx browserslist@latest --update-db
[0]   Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
[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/afalco/indeed/backstage/backstage-indeed/packages/app/public' directory
[0] <i> [webpack-dev-server] 404s will fallback to '/index.html'
[0] <i> [webpack-dev-middleware] wait until bundle finished: /
[0] ERROR in main
[0] Module not found: Error: Can't resolve 'swc-loader' in '/Users/afalco/indeed/backstage/backstage-indeed/packages/app'
[0] 
[0] webpack compiled with 1 error
^C
stoic helm
#

Ah i think we might be a slight tweak in the cli on our end. In the meantime, could you make sure that all your cli versions are in sync? yarn why @backstage/cli should show a single version only

hot yew
# stoic helm Ah i think we might be a slight tweak in the cli on our end. In the meantime, co...
% yarn why @backstage/cli
[1/4] :thinking:  Why do we have the module "@backstage/cli"...?
[2/4] :truck:  Initialising dependency graph...
warning Resolution field "[email protected]" is incompatible with requested version "git-up@^7.0.0"
[3/4] :mag:  Finding dependency...
[4/4] :aerial_tramway:  Calculating file sizes...
=> Found "@backstage/[email protected]"
info Has been hoisted to "@backstage/cli"
info Reasons this module exists
   - "workspace-aggregator-33c5c28b-2bc5-45de-9f8c-b7eb5118e253" depends on it
   - Specified in "devDependencies"
   - Hoisted from "_project_#@backstage#cli"
   - Hoisted from "_project_#app#@backstage#cli"
   - Hoisted from "_project_#backend#@backstage#cli"
   - Hoisted from "_project_#@internal#plugin-aws-migration-status#@backstage#cli"
   - Hoisted from "_project_#@internal#plugin-cloud-budget-tool#@backstage#cli"
   - Hoisted from "_project_#@internal#plugin-cloud-function-catalog#@backstage#cli"
   - Hoisted from "_project_#@internal#plugin-code-review#@backstage#cli"
   - Hoisted from "_project_#@internal#plugin-datadog-dashboards#@backstage#cli"
   - Hoisted from "_project_#@internal#plugin-groupster#@backstage#cli"
   - Hoisted from "_project_#@internal#plugin-healthcheck-common#@backstage#cli"
   - Hoisted from "_project_#@internal#plugin-indeed-catalog#@backstage#cli"
   - Hoisted from "_project_#@internal#plugin-instance-search-backend#@backstage#cli"
   - Hoisted from "_project_#@internal#plugin-instance-search#@backstage#cli"
   - Hoisted from "_project_#@internal#plugin-lemma#@backstage#cli"
   - Hoisted from "_project_#@internal#plugin-product-quality#@backstage#cli"
   - Hoisted from "_project_#@internal#plugin-service-registry-backend#@backstage#cli"
   - Hoisted from "_project_#@internal#plugin-slo-status#@backstage#cli"
info Disk size without dependencies: "81.39MB"
info Disk size with unique dependencies: "81.39MB"
info Disk size with transitive dependencies: "81.39MB"
info Number of shared dependencies: 784
stoic helm