Hello,
I am getting No Message String warnings on console which are affecting my code.
I am getting this error on my production side but not on local environment.
I am using React with typescript and my Blockly version is 9.3.2.
I am using IMPORT modules method rather than <script> tags.
Here is my code
import En from 'blockly/msg/en.js';
import Blockly
from 'blockly'
import 'blockly/javascript_compressed';
import { INITIAL_TOOLBOX_JSON } from './toolBoxCategory';
export const BlocklyWorkspace: FC<any> = () => {
const [workspace, setWorkspace] = useState<any>(null);
useEffect(() => {
let blocklyWorkspace = Blockly.inject("blocklyDiv", {
toolbox: INITIAL_TOOLBOX_JSON,
trashcan: true,
move: {
scrollbars: {
horizontal: true,
vertical: true
},
drag: true,
wheel: true
},
zoom:
{
controls: true,
wheel: true,
startScale: 1.0,
maxScale: 3,
minScale: 0.3,
scaleSpeed: 1.2,
pinch: true
},
});
setWorkspace(blocklyWorkspace)
},[]);
<div id="blocklyDiv"></div>
)
}
I am importing language file but still getting the message warnings.
Any help would be appreciated.