blitz-js / legacy-framework

MIT License
3 stars 2 forks source link

Error while trying to push to Github repo #371

Closed JithinKS97 closed 2 years ago

JithinKS97 commented 2 years ago

What is the problem?

When I try to push to GitHub a clean install of Blitz, I get this error

Paste all your error logs here:

/Users/userName/Desktop/projects/viteclout/node_modules/blitz/jest-preset/global-setup.js:2
import {loadEnvConfig} from "@blitzjs/env"
^^^^^^

SyntaxError: Cannot use import statement outside a module

Paste all relevant code snippets here:

N/A

What are detailed steps to reproduce this?

  1. Clean install blitz js with typescript setup
  2. Try to push to Github repo

Run blitz -v and paste the output here:

N/A

Please include below any other applicable logs and screenshots that show your problem:

No response

beerose commented 2 years ago

Fixed in https://github.com/blitz-js/blitz/pull/3027. Please upgrade to the latest Blitz version!