Build error when adding @blockly/keyboard-experiment to a TypeScript project

36 views
Skip to first unread message

Michael Scherotter

unread,
Jun 4, 2025, 11:24:55 AMJun 4
to Blockly
I am seeing a Typescript build error when adding the Keyboard navigation add-in to my Typescript project
1. I upgraded to Blockly 12.1.0
2. In installed the package @blockly/keyboard-experiment
3. Building with Typescript TSC generates this error

Module not found: Error: Can't resolve '@blockly/keyboard-experiment' in 'C:\Users\MichaelScherotter\Source\repos\express-blocks\src\ui'
resolve '@blockly/keyboard-experiment' in 'C:\Users\MichaelScherotter\Source\repos\express-blocks\src\ui'
  Parsed request is a module
  using description file: C:\Users\MichaelScherotter\Source\repos\express-blocks\package.json (relative path: ./src/ui)
    Field 'browser' doesn't contain a valid alias configuration

I can confirm that the package is installed correctly.  I can also confirm that there are no *.d.ts files in the package directory like the /blockly package has.  Can the Blockly team prioritize adding Typescript Support to the keyboard support add-in?

Thanks,
Michael

Michael Scherotter

unread,
Jun 5, 2025, 11:21:32 AMJun 5
to Blockly
Looks like there is now an issue in the repo for it:

Michael

Reply all
Reply to author
Forward
0 new messages