Skip to content

dev-tools references exports deleted in Blockly v11 #2345

@cpcallen

Description

@cpcallen

Check for duplicates

  • I have searched for similar issues before opening a new one.

Component

plugins/dev-tools

Description

Building against a version of Blockly v11 with "import" conditional exports for blockly/core, I noted a number of webpack warnings for non-existent exports from blockly/core, mostly due to fields and other functionality that had been moved into plugins:

These should be fixed by either adding a dependency on the required plugin or by removing the relevant functionality from this plugin.

  • Check other plugins for similar issues.

Reproduction steps

  1. Prepare blockly repository:
    1. Check out blockly branch tmp/samples-bug-2345
    2. In blockly/ run:
      npm ci
      npm run package
      
  2. Prepare blockly-samples repository and link it against blockly/dist:
    1. Check out branch rc/v11.0.0
    2. In blockly-samples/ run:
      rm -rf plugins/*/node_modules
      npm ci
      cd plugins
      for d in * ; do (cd "$d" && [[ -d node_modules/blockly  ]] && rm -rf node_modules/blockly && ln -s ../../../../blockly/dist node_modules/blockly  ); done
      
  3. In blockly-samples/plugins/dev-tools, run npm start.
  4. Observe warnings as quoted below.

Warnings

Some example errors (edited for length):

WARNING in ../block-test/src/fields/validators.js 144:23-41
export 'FieldAngle' (imported as 'Blockly') was not found in 'blockly/core' (possible exports: ASTNode, BasicCursor, … utils, zelos)

WARNING in ../block-test/src/fields/validators.js 222:28-47
export 'FieldColour' (imported as 'Blockly') was not found in 'blockly/core' (possible exports: ASTNode, BasicCursor, … utils, zelos)

WARNING in ../block-test/src/fields/validators.js 788:4-18
export 'prompt' (imported as 'Blockly') was not found in 'blockly/core' (possible exports: ASTNode, BasicCursor, … utils, zelos)

WARNING in ./src/playground/options.js 1089:8-54
export 'navigation' (imported as 'Blockly') was not found in 'blockly/core' (possible exports: ASTNode, BasicCursor, … utils, zelos)

Metadata

Metadata

Assignees

Labels

type: bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions