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

SyntaxError: src/MarkdownRenderer.test.ts: Unexpected token #2

Open
satonotdead opened this issue Oct 15, 2022 · 1 comment
Open

SyntaxError: src/MarkdownRenderer.test.ts: Unexpected token #2

satonotdead opened this issue Oct 15, 2022 · 1 comment

Comments

@satonotdead
Copy link

I see that message when I try to npm build run:

babel src --out-dir built --extensions ".ts,.js"

SyntaxError: src/MarkdownRenderer.test.ts: Unexpected token (3:12)
  1 | import { promises as fs } from "fs";
  2 | import MarkdownRenderer from "./MarkdownRenderer";
> 3 | import type { BlockNode, InlineNode, LinkNode, ImageNode, LeafNode } from "./MarkdownRenderer";
    |             ^
  4 | 
  5 | describe("render", () => {
  6 |   it("renders a sample document", async () => {

Could be something with my environment? Can I try something for help?

Thanks.

@verlinden
Copy link

Hello, had the same issue, you have to run yarn or npm install before runnning npm build run

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

No branches or pull requests

2 participants