-
Notifications
You must be signed in to change notification settings - Fork 662
Closed
Labels
type: bugSomething isn't workingSomething isn't working
Description
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:
-
Blockly.FieldAngle -
Blockly.FieldColour -
Blockly.FieldAngle -
Blockly.navigation -
Blockly.prompt—renamedBlockly.dialog.promptin v7.20211209.0
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
- Prepare
blocklyrepository:- Check out
blocklybranchtmp/samples-bug-2345 - In
blockly/run:npm ci npm run package
- Check out
- Prepare
blockly-samplesrepository and link it againstblockly/dist:- Check out branch
rc/v11.0.0 - 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
- Check out branch
- In
blockly-samples/plugins/dev-tools, runnpm start. - 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)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type: bugSomething isn't workingSomething isn't working