Skip to content

Unexpected token 'with' #157

@eric-burel

Description

@eric-burel

Describe the bug

Hi folks, I am hitting an issue on install:

dependencies:
+ @tutorialkit/components-react 0.0.2
+ react 18.3.1
+ react-dom 18.3.1

devDependencies:
+ @astrojs/check 0.7.0
+ @astrojs/react 3.6.0
+ @iconify-json/ph 1.1.13
+ @iconify-json/svg-spinners 1.1.2
+ @tutorialkit/astro 0.0.2
+ @tutorialkit/types 0.0.2
+ @types/node 20.14.11
+ @types/react 18.3.3
+ @unocss/reset 0.59.4
+ astro 4.11.6
+ fast-glob 3.3.2
+ prettier-plugin-astro 0.14.1
+ typescript 5.5.3
+ unocss 0.59.4

Done in 25.3s

> flat-bird@0.0.1 dev /home/eric-burel/code-hdd/flat-bird
> astro dev

SyntaxError: Unexpected token 'with'
    at ESMLoader.moduleStrategy (node:internal/modules/esm/translators:119:18)
    at ESMLoader.moduleProvider (node:internal/modules/esm/loader:468:14)
 ELIFECYCLE  Command failed with exit code 1.
 ERROR  Command failed with exit code 1: pnpm run dev

Link to a StackBlitz project which shows the error

No response

Steps to reproduce

pnpm create tutorial

Use default settings

Expected behavior

Should install :)

Screenshots

No response

Platform

  • TutorialKit version: we can't really see the version when initializing a project
  • OS: Ubuntu 22
  • Node v18.18.2

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstreamIssue related to upstream dependency

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions