Skip to content

error TS1208: 'remove-build-files.ts' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module. #213

@TimaxHack

Description

@TimaxHack

Error:

timax@timax-laptop:~/Code/Local-Deep/dev$ npm run local-migrate

> @deep-foundation/[email protected] local-migrate
> export NEXT_PUBLIC_ENGINES=0; export NEXT_PUBLIC_HIDEPATH=1; export npm_config_yes=true; export JWT_SECRET="{\"type\":\"HS256\",\"key\":\"3EK6FD+o0+c7tzBNVfjpMkNDi2yARAAKzQlk8O2IKoxQu4nF7EdAh8s3TwpHwrdWT6R\"}"; export MIGRATIONS_ID_TYPE_SQL=bigint; export MIGRATIONS_ID_TYPE_GQL=bigint; export MIGRATIONS_HASURA_PATH=localhost:8080; export MIGRATIONS_HASURA_SSL=0; export MIGRATIONS_HASURA_SECRET=myadminsecretkey; export NEXT_PUBLIC_DEEPLINKS_SERVER=http://localhost:3007; export NEXT_PUBLIC_GQL_PATH=localhost:3006/gql; export NEXT_PUBLIC_GQL_SSL=0 DEEPLINKS_HASURA_PATH=localhost:8080; export DEEPLINKS_HASURA_SSL=0; export MIGRATIONS_DEEPLINKS_APP_URL=http://host.docker.internal:3007 export MIGRATIONS_DEEPLINKS_URL=http://host.docker.internal:3006; cd packages/deeplinks && npm run migrate


> @deep-foundation/[email protected] migrate
> npm run package:build && npx migrate@latest up --matches '*.js'


> @deep-foundation/[email protected] package:build
> tsc --project tsconfig.json

automation/remove-build-files.ts:1:1 - error TS1208: 'remove-build-files.ts' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module.

1 // import glob from "glob";
  


Found 1 error in automation/remove-build-files.ts:1

timax@timax-laptop:~/Code/Local-Deep/dev$ 

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions