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

Unhandled Rejection (Error): TopBlock is not defined #82

Open
zhylninc opened this issue Sep 2, 2021 · 2 comments
Open

Unhandled Rejection (Error): TopBlock is not defined #82

zhylninc opened this issue Sep 2, 2021 · 2 comments

Comments

@zhylninc
Copy link

zhylninc commented Sep 2, 2021

Unhandled Rejection (Error): TopBlock is not defined
w
lib/errors.ts:43:8
40 | */
41 | const handleRuntimeError = (error: Error) => {
42 | hasRuntimeError = true;

43 | throw new Error(error.message);
| ^ 44 | };
45 |
46 | export {
View compiled
(anonymous function)
evaluate.ts:134:4
131 | ExtensionHandle.reportPerformance(evaluationEndTime - evaluationStartTime);
132 | return evaluatedModule;
133 | } catch(error) {
134 | handleRuntimeError(error);
| ^ 135 | } finally {
136 | evaluationProgress.value = EvaluationProgress.COMPLETED;
137 | }
View compiled
▼ 5 stack frames were expanded.
E
../node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js:62:14
Generator._invoke
../node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js:288
Generator.e. [as throw]
../node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js:114
r
../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js:3
l
../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js:29
▲ 5 stack frames were expanded.

@brennanMKE
Copy link

I also get an error at lib/errors.ts:43:8. It looks identical to the issue above.

Unhandled Rejection (Error): Callout is not defined
w
lib/errors.ts:43:8
  40 |  */
  41 | const handleRuntimeError = (error: Error) => {
  42 |   hasRuntimeError = true;
> 43 |   throw new Error(error.message);
     |        ^  44 | };
  45 | 
  46 | export {
View compiled
(anonymous function)
evaluate.ts:134:4
  131 |   ExtensionHandle.reportPerformance(evaluationEndTime - evaluationStartTime);
  132 |   return evaluatedModule;
  133 | } catch(error) {
> 134 |   handleRuntimeError(error);
      |  ^  135 | } finally {
  136 |   evaluationProgress.value = EvaluationProgress.COMPLETED;
  137 | }
View compiled
▼ 5 stack frames were expanded.
E
../node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js:62:14
Generator._invoke
../node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js:288
Generator.e.<computed> [as throw]
../node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js:114
r
../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js:3
l
../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js:29
▲ 5 stack frames were expanded.
This screen is visible only in development. It will not appear if the app crashes in production.
Open your browser’s developer console to further inspect this error.

@askerlee
Copy link

Same here. A temporary fix is add file association: "*.mdx": "markdown" in the settings. So far it works well :)

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

No branches or pull requests

3 participants