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

error TS1208: 'aframe-graph.tsx' 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. #214

Open
TimaxHack opened this issue Mar 3, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@TimaxHack
Copy link

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

> @deep-foundation/[email protected] local
> cross-env npm_config_yes=true NEXT_PUBLIC_ENGINES=1 NEXT_PUBLIC_HIDEPATH=1 JWT_SECRET="{\"type\":\"HS256\",\"key\":\"3EK6FD+o0+c7tzBNVfjpMkNDi2yARAAKzQlk8O2IKoxQu4nF7EdAh8s3TwpHwrdWT6R\"}" MIGRATIONS_ID_TYPE_SQL=bigint MIGRATIONS_ID_TYPE_GQL=bigint MIGRATIONS_HASURA_PATH=localhost:8080 MIGRATIONS_HASURA_SSL=0 MIGRATIONS_HASURA_SECRET=myadminsecretkey DEEPLINKS_HASURA_SECRET=myadminsecretkey NEXT_PUBLIC_DEEPLINKS_SERVER=http://localhost:3007 NEXT_PUBLIC_GQL_PATH=localhost:3006/gql NEXT_PUBLIC_GQL_SSL=0 DEEPLINKS_HASURA_PATH=localhost:8080 DEEPLINKS_HASURA_SSL=0 MIGRATIONS_DEEPLINKS_APP_URL=http://host.docker.internal:3007 MIGRATIONS_DEEPLINKS_URL=http://host.docker.internal:3006 NEXT_PUBLIC_DEEPLINKS_URL=http://localhost:3006 DEEPLINKS_PUBLIC_URL=http://localhost:3006 DOCKER_DEEPLINKS_URL=http://host.docker.internal:3006 DEEPLINKS_ROUTE_HANDLERS_HOST=host.docker.internal npm run local-core

[4] 
[3] > @deep-foundation/[email protected] dev
[3] > next dev
[3] 
[4] 10:06:01 PM - Starting compilation in watch mode...
[4] 
[0] 
[0] > @deep-foundation/[email protected] dev
[0] > next dev "-p" "3007"
[0] 
[2] 
[2] > @deep-foundation/[email protected] docker-local
[2] > cd ./local && docker-compose -p deep up -d && cd ../
[2] 
[1] The DEEPLINKS_HASURA_STORAGE_URL variable is not set. Defaulting to a blank string.
[1] The MOESIF_TOKEN variable is not set. Defaulting to a blank string.
[1] The GITPOD_GIT_USER_EMAIL variable is not set. Defaulting to a blank string.
[1] The GITPOD_TASKS variable is not set. Defaulting to a blank string.
[1] The RESERVED_LIFETIME_MS variable is not set. Defaulting to a blank string.
[1] The MIGRATIONS_SCHEMA variable is not set. Defaulting to a blank string.
[1] The MIGRATIONS_RL_TABLE variable is not set. Defaulting to a blank string.
[1] The MIGRATIONS_DATE_TYPE_SQL variable is not set. Defaulting to a blank string.
[1] The DEFAULT_RL_CRON_SCHEDULE variable is not set. Defaulting to a blank string.
[1] The DEEPLINKS_PORT variable is not set. Defaulting to a blank string.
[3] - ready started server on 0.0.0.0:4000, url: http://localhost:4000
[1] Removing network deep-network
[1] error while removing network: network deep-network id 48f7d39f3b4b7d2b9181fea85ecda9cb5879dc9c38831936207404be46300973 has active endpoints
[3] - info Loaded env from /home/timax/Code/Local-Deep/dev/packages/sdk/.env.development
[2] deep-postgres is up-to-date
[2] deep-minio is up-to-date
[2] deep-hasura is up-to-date
[2] deep-hasura-storage is up-to-date
[2] npm run local-engine exited with code 0
[3] - warn Invalid next.config.js options detected: 
[3] - warn     The root value has an unexpected property, strictMode, which is not in the list of allowed properties (amp, analyticsId, assetPrefix, basePath, cleanDistDir, compiler, compress, configOrigin, crossOrigin, devIndicators, distDir, env, eslint, excludeDefaultMomentLocales, experimental, exportPathMap, generateBuildId, generateEtags, headers, httpAgentOptions, i18n, images, modularizeImports, onDemandEntries, optimizeFonts, output, outputFileTracing, pageExtensions, poweredByHeader, productionBrowserSourceMaps, publicRuntimeConfig, reactStrictMode, redirects, rewrites, sassOptions, serverRuntimeConfig, skipMiddlewareUrlNormalize, skipTrailingSlashRedirect, staticPageGenerationTimeout, swcMinify, target, trailingSlash, transpilePackages, typescript, useFileSystemPublicRoutes, webpack).
[3] - warn See more info here: https://nextjs.org/docs/messages/invalid-next-config
[1] 
[1] > @deep-foundation/[email protected] launch
[1] > npm run package:build && node ./index.js;
[1] 
[0]    ▲ Next.js 14.1.0
[0]    - Local:        http://localhost:3007
[0] 
[0]  ⚠ Invalid next.config.js options detected: 
[0]  ⚠     Unrecognized key(s) in object: 'webpack5', 'future', 'strictMode'
[0]  ⚠ See more info here: https://nextjs.org/docs/messages/invalid-next-config
[1] 
[1] > @deep-foundation/[email protected] package:build
[1] > tsc --project tsconfig.json
[1] 
[3] - event compiled client and server successfully in 648 ms (18 modules)
[3] - wait compiling...
[0]  ✓ Ready in 4.5s
[3] - event compiled client and server successfully in 343 ms (18 modules)
[1] 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] npm run deeplinks exited with code 2
[4] imports/aframe/aframe-graph.tsx(1,1): error TS1208: 'aframe-graph.tsx' 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.
[4] imports/client-handler.tsx(8,29): error TS2307: Cannot find module 'axios-hooks' or its corresponding type declarations.
[4] imports/package-publisher.tsx(6,30): error TS2307: Cannot find module 'axios-hooks' or its corresponding type declarations.
[4] imports/packager-interface/packager-interface-tabs-content.tsx(13,30): error TS2307: Cannot find module 'axios-hooks' or its corresponding type declarations.
[4] imports/packager-interface/packager-interface.tsx(13,30): error TS2307: Cannot find module 'axios-hooks' or its corresponding type declarations.
[4] imports/test.ts(1,1): error TS1208: 'test.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.
[4] 
[4] 10:06:39 PM - Found 6 errors. Watching for file changes.

@Konard Konard added the bug Something isn't working label Mar 3, 2024
@Konard Konard self-assigned this Mar 3, 2024
@TimaxHack
Copy link
Author

TimaxHack commented Mar 3, 2024

Workround 1

stop the process "npm run local"

download the missing package

npm i axios-hooks

re-execute

npm run local

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
Status: Todo
Development

No branches or pull requests

2 participants