Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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. #211

Open
Konard opened this issue Jan 10, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Konard
Copy link
Member

Konard commented Jan 10, 2024

gitpod /workspace/empty/dev (main) $ 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

gitpod /workspace/empty/dev (main) $ 
@Konard Konard added the bug Something isn't working label Jan 10, 2024
@FreePhoenix888
Copy link
Member

FreePhoenix888 commented Jan 11, 2024

https://github.com/deep-foundation/deeplinks/blob/b2b2da7996d48be11ca4e3f528a97b6a5b8b62b1/tsconfig.json#L21

Set this to false. Why do we need it to set true? In other projects, for example capacitor-device I do not use this option (by default it is true)

@Konard
Copy link
Member Author

Konard commented Jan 11, 2024

The question is: Why it works in GitPod?

@FreePhoenix888
Copy link
Member

The question is: Why it works in GitPod?

Where it does not work then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants