Skip to content
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

Test blocks don't load on develop #6009

Closed
BeksOmega opened this issue Mar 17, 2022 · 1 comment
Closed

Test blocks don't load on develop #6009

BeksOmega opened this issue Mar 17, 2022 · 1 comment
Assignees

Comments

@BeksOmega
Copy link
Collaborator

Describe the bug

Test blocks are no longer available in the playground on develop.

To Reproduce

Steps to reproduce the behavior:

  1. Go to the playground.
  2. Select the test blocks category.
  3. Get the 'you need to run npm install' message, even if you have.

Expected behavior

Test blocks are available for testing.

Additional context

I've tried:

  • Adding <script type="module" src="../node_modules/@blockly/block-test/dist/index.js"></script> to the playground below the main module.
  • Adding a document.write call in at the end of the uncompressed part of prepare.js with <script src="../node_modules/@blockly/block-test/dist/index.js"></script>
  • Adding import '../node_modules/@blockly/block-test/dist/index.js' to the playground below import Blockly from './prepare.js'
  • Adding import '@blockly/block-test' to the playground below import Blockly from './prepare.js'
  • Adding import '../node_modules/@blockly/block-test/dist/index.js' to blockly.mjs right before the default export.
  • Adding import '@blockly/block-test' to blockly.mjs right before the default export.

For the full paths this gives the error:

Uncaught TypeError: Cannot read properties of undefined (reading 'Blockly')
    at universalModuleDefinition:7:98
    at universalModuleDefinition:1:1

And for the non-full paths this gives the error:

Uncaught TypeError: Failed to resolve module specifier "@blockly/block-test". Relative references must start with either "/", "./", or "../"

Related to #5931

@BeksOmega BeksOmega added the issue: triage Issues awaiting triage by a Blockly team member label Mar 17, 2022
@gonfunko gonfunko added component: devtools and removed issue: triage Issues awaiting triage by a Blockly team member labels Mar 17, 2022
@BeksOmega
Copy link
Collaborator Author

Closed by #6015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants