alexadark / frontity-starter-theme

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: pragma and pragmaFrag cannot be set when runtime is automatic.

dejangeorgiev opened this issue · comments

Hi Alex,

When i try to run npx frontity dev i get this error
`
Error: ./packages/frontity-starter-theme/src/components/index.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: /Users/dejangeorgiev/Code/frontity-theme-ui-tailwindcss/packages/frontity-starter-theme/src/components/index.js: pragma and pragmaFrag cannot be set when runtime is automatic.

1 | /** @jsx jsx */
| ^
2 | import { jsx, Flex, ThemeProvider } from "theme-ui";
3 | import theme from "../theme-ui";
4 | import { Global, connect, Head } from "frontity";`

image

Could you please assist?

Thanks a lot.

Im getting same error. It was running fine 4 days ago.. since updating react on my system Im having this problem