Skip to content

error during compile assets - origin/stable/2026-04-22 #2626

Description

@amg-web

Describe the bug

RAILS_ENV=production bundle exec rake canvas:compile_assets

$ NODE_ENV=development rspack build
Generated imports: /home/quicklearn/public_html/ui/shared/bundles/extensions.ts
Generated imports: /home/quicklearn/public_html/ui/shared/bundles/extensions.ts
[rspack-cli] [Error:   × Module not found: Can't resolve '@instructure/platform-alerts' in '/home/quicklearn/public_html/ui/features/discovery_page/react/components'
    ╭─[27:0]
 25 │ import { Heading } from '@instructure/ui-heading';
 26 │ import { Alert } from '@instructure/ui-alerts';
 27 │ import { showFlashAlert } from '@instructure/platform-alerts';
    · ──────────────────────────────────────────────────────────────
 28 │ import { FetchApiError } from '@canvas/do-fetch-api-effect';
 29 │ import { useScope as createI18nScope } from '@canvas/i18n';
    ╰────
] {
  code: 'GenericFailure'
}
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR in ./ui/features/discovery_page/react/components/ConfigureModal.tsx 28:0-62
  × Module not found: Can't resolve '@instructure/platform-alerts' in '/home/quicklearn/public_html/ui/features/discovery_page/react/components'
    ╭─[28:0]
 26 │ import { Heading } from '@instructure/ui-heading';
 27 │ import { Alert } from '@instructure/ui-alerts';
 28 │ import { showFlashAlert } from '@instructure/platform-alerts';
    · ──────────────────────────────────────────────────────────────
 29 │ import { FetchApiError } from '@canvas/do-fetch-api-effect';
 30 │ import { useScope as createI18nScope } from '@canvas/i18n';
    ╰────


Rspack compiled with 1 error in 10.58 s
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
rake aborted!
Parallel::UndumpableException: RuntimeError: Error running js:webpack_development:  (Parallel::UndumpableException)
ABORTING
/home/quicklearn/public_html/lib/tasks/js.rake:12:in 'block (2 levels) in <top (required)>'
/home/quicklearn/public_html/lib/tasks/canvas.rake:73:in 'block (6 levels) in <top (required)>'
/home/quicklearn/public_html/vendor/bundle/ruby/3.4.0/gems/benchmark-0.5.0/lib/benchmark.rb:324:in 'Benchmark.realtime'
/home/quicklearn/public_html/lib/tasks/canvas.rake:12:in 'Object#log_time'
/home/quicklearn/public_html/lib/tasks/canvas.rake:76:in 'block (5 levels) in <top (required)>'
/home/quicklearn/public_html/vendor/bundle/ruby/3.4.0/gems/parallel-1.27.0/lib/parallel.rb:650:in 'Parallel.call_with_index'
/home/quicklearn/public_html/vendor/bundle/ruby/3.4.0/gems/parallel-1.27.0/lib/parallel.rb:620:in 'Parallel.process_incoming_jobs'
/home/quicklearn/public_html/vendor/bundle/ruby/3.4.0/gems/parallel-1.27.0/lib/parallel.rb:600:in 'block in Parallel.worker'
/home/quicklearn/public_html/vendor/bundle/ruby/3.4.0/gems/parallel-1.27.0/lib/parallel.rb:591:in 'Process.fork'
/home/quicklearn/public_html/vendor/bundle/ruby/3.4.0/gems/parallel-1.27.0/lib/parallel.rb:591:in 'Parallel.worker'
/home/quicklearn/public_html/vendor/bundle/ruby/3.4.0/gems/parallel-1.27.0/lib/parallel.rb:582:in 'block in Parallel.create_workers'
/home/quicklearn/public_html/vendor/bundle/ruby/3.4.0/gems/parallel-1.27.0/lib/parallel.rb:581:in 'Array#each'
/home/quicklearn/public_html/vendor/bundle/ruby/3.4.0/gems/parallel-1.27.0/lib/parallel.rb:581:in 'Enumerable#each_with_index'
/home/quicklearn/public_html/vendor/bundle/ruby/3.4.0/gems/parallel-1.27.0/lib/parallel.rb:581:in 'Parallel.create_workers'
/home/quicklearn/public_html/vendor/bundle/ruby/3.4.0/gems/parallel-1.27.0/lib/parallel.rb:520:in 'Parallel.work_in_processes'
/home/quicklearn/public_html/vendor/bundle/ruby/3.4.0/gems/parallel-1.27.0/lib/parallel.rb:291:in 'Parallel.map'
/home/quicklearn/public_html/lib/tasks/canvas.rake:69:in 'block (4 levels) in <top (required)>'
/home/quicklearn/public_html/lib/tasks/canvas.rake:68:in 'Array#each'
/home/quicklearn/public_html/lib/tasks/canvas.rake:68:in 'block (3 levels) in <top (required)>'
/home/quicklearn/public_html/vendor/bundle/ruby/3.4.0/gems/benchmark-0.5.0/lib/benchmark.rb:324:in 'Benchmark.realtime'
/home/quicklearn/public_html/lib/tasks/canvas.rake:67:in 'block (2 levels) in <top (required)>'
/home/quicklearn/public_html/vendor/bundle/ruby/3.4.0/gems/rake-13.3.1/exe/rake:27:in '<top (required)>'
Tasks: TOP => canvas:compile_assets
(See full trace by running task with --trace)

Screenshots or screen recordings

No response

Steps to reproduce

quicklearn@sharedlms2:~/public_html$ git show
commit 8cd46c311b833ae17bcbf1cc801ee4bfdd4bde85 (HEAD -> prod, origin/prod)
Merge: c7a30bd2d16 080d9a00ef5
Author: SaltNPepa <svc.saltnpepa@instructure.com>
Date:   Thu Apr 23 06:10:18 2026 +0000

    treesame commit of origin/stable/2026-04-22

    Treesame-Commit-Id: 080d9a00ef50749170f79286e3d2a68e712791e8

What browsers are you seeing the problem on (if applicable)?

No response

Backtrace


Relevant log output


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions