-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Name problems #48
Comments
Thanks for pointing out the issues, Seb. I'm in the process of updating the plugin (and it's documentation). I plan to have the new version fixed within a couple of days, but I can't guarantee that. If you can't wait for that, I might suggest trying to use version 1.0.0. instead. |
@SebCanet, All that you should need to do is change how you import and reference the plugin (in your code) to something like the following: import {LexicalVariablesPlugin} from '@mit-app-inventor/blockly-block-lexical-variables';
...
const workspace = Blockly.inject(...);
...
// Load lexical variable plugin
LexicalVariablesPlugin.init(workspace); I've updated the README file and the Lexical Block Demo code to reflect this. |
Thanks, but in your demo there are a lot of dependencies problem. Or if I update all dependencies webpack has problem like this:
Thanks for your help. |
@SebCanet I'm not sure what your installation and build process for the demo was but I'll guess that you ran Let me know if your attempt to install and run the demo still fails after using At some point I might try to update to a more current set of dependencies, but that can get a little complicated and I've holding off on that. You are more than welcome to try and do that and submit a PR ;-). It's possible that you've already done most of the work and all you need to do is change the
|
Thanks, I would have never guess for the About your plugin, to make it work with latest version of all dependencies here's the plugin section in webpack.config.js as you explained earlier:
But with an exact copy of the demo repo, or with dependencies updates, I have error message:
Not sure the problem can be... |
The
That sounds great! If you think that you might want to define your own blocks using the fields in the plugin, let me know. I am intending to make that significantly simpler to do in the next major version of the plugin. That said, it might be possible to just redefine the existing blocks with small tweaks for your use.
You can safely ignore warnings about missing source map files, but if you have any errors that prevent building or running the demo, let me know. It all works for me, so we would have to figure out what is different for you. |
Hi,
I tried to add this plugin in my Blockly soft, but I add many errors:
Module not found: Error: Can't resolve 'blockly/core' in 'F:\Logiciels\Arduino_graphique\µcBlockly\node_modules@mit-app-inventor\blockly-block-lexical-variables\src'
Did you mean 'core-browser.js'?
BREAKING CHANGE: The request 'blockly/core' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
Thanks for your help.
The text was updated successfully, but these errors were encountered: