Hi 👋 , I have a problem with a new redwood project.
I run the following commands:
yarn create redwood-app test
cd test
yarn rw g component Test
yarn rw test
And I get the next error:
Jest encountered an unexpected token
...
/home/rodrigo/workspace/test/node_modules/@apollo/client/react/hooks/useSubscription.js:1
import { __assign } from "tslib";
^^^^^^
SyntaxError: Cannot use import statement outside a module
at compileFunction (<anonymous>)
at Runtime._execModule (../node_modules/jest-runtime/build/index.js:1179:56)
This is the output of yarn rw info
System:
OS: Linux 5.8 Arch Linux
Shell: 5.8 - /bin/zsh
Binaries:
Node: 12.18.3 - /tmp/yarn--1601732607280-0.7441083359073166/node
Yarn: 1.22.10 - /tmp/yarn--1601732607280-0.7441083359073166/yarn
Databases:
SQLite: 3.33.0 - /usr/bin/sqlite3
Browsers:
Firefox: 81.0
npmPackages:
@redwoodjs/core: ^0.19.1 => 0.19.1
Let me know if I can help somehow.
Thanks in advance.
Hi 👋 , I have a problem with a new redwood project.
I run the following commands:
And I get the next error:
This is the output of
yarn rw infoLet me know if I can help somehow.
Thanks in advance.