deep-foundation / deep-foundation/dev

deepcase cannot resolve its dependencies in local installation

Open
#203 10 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
20
Forks
18
PR merge metrics
No merged PRs in 30d

Description

# How to reproduce
```
git clone https://github.com/deep-foundation/dev.git
cd dev
npm ci
rm -rf packages/deepcase
rm -rf packages/deepcase-app
rm -rf packages/deeplinks
npm run packages

npm run local
```

# Error
```
2:59:50 PM - Starting compilation in watch mode...
[4]
[0]
[0] > @deep-foundation/deepcase-app@0.1.0-beta.14 dev
[0] > next dev "-p" "3007"
[0]
[2]
[2] > @deep-foundation/hasura@0.0.61 docker
[2] > cross-env JWT_SECRET="{\"type\":\"HS256\",\"key\":\"3EK6FD+o0+c7tzBNVfjpMkNDi2yARAAKzQlk8O2IKoxQu4nF7EdAh8s3TwpHwrdWT6R\"}" HASURA_GRAPHQL_DATABASE_URL=postgres://postgres:postgrespassword@postgres:5432/postgres HASURA_GRAPHQL_ENABLE_CONSOLE=true HASURA_GRAPHQL_DEV_MODE=true HASURA_GRAPHQL_LOG_LEVEL=debug HASURA_GRAPHQL_ENABLED_LOG_TYPES="startup, http-log, webhook-log, websocket-log, query-log" HASURA_GRAPHQL_ADMIN_SECRET=myadminsecretkey HASURA_GRAPHQL_ENABLE_REMOTE_SCHEMA_PERMISSIONS=true HASURA_GRAPHQL_UNAUTHORIZED_ROLE=undefined POSTGRES_USER=postgres POSTGRES_PASSWORD=postgrespassword PGGSSENCMODE=disable PGSSLMODE=disable PGREQUIRESSL=0 MINIO_ROOT_USER=minioaccesskey MINIO_ROOT_PASSWORD=miniosecretkey HASURA_STORAGE_DEBUG=true HASURA_METADATA=1 HASURA_ENDPOINT=http://host.docker.internal:8080/v1 S3_ENDPOINT=http://host.docker.internal:9000 S3_ACCESS_KEY=minioaccesskey S3_SECRET_KEY=miniosecretkey S3_BUCKET=default S3_ROOT_FOLDER=default POSTGRES_MIGRATIONS=0 POSTGRES_MIGRATIONS_SOURCE=postgres://postgres:postgrespassword@host.docker.internal:5432/postgres?sslmode=disable npm run docker-local
[2]
[1]
[1] > @deep-foundation/deeplinks@0.0.324 dev
[1] > (cd local && docker-compose down || true) && cross-env PORT=3006 npm run launch
[1]
[3]
[3] > @deep-foundation/sdk@0.0.0 dev
[3] > next dev
[3]
[1] time="2024-01-09T14:59:50+06:00" level=warning msg="The \"MOESIF_TOKEN\" variable is not set. Defaulting to a blank string."
[1] time="2024-01-09T14:59:50+06:00" level=warning msg="The \"GITPOD_GIT_USER_EMAIL\" variable is not set. Defaulting to a blank string."
[1] time="2024-01-09T14:59:50+06:00" level=warning msg="The \"RESERVED_LIFETIME_MS\" variable is not set. Defaulting to a blank string."
[1] time="2024-01-09T14:59:50+06:00" level=warning msg="The \"MIGRATIONS_DATE_TYPE_SQL\" variable is not set. Defaulting to a blank string."
[1] time="2024-01-09T14:59:50+06:00" level=warning msg="The \"DEFAULT_RL_CRON_SCHEDULE\" variable is not set. Defaulting to a blank string."
[1] time="2024-01-09T14:59:50+06:00" level=warning msg="The \"MIGRATIONS_RL_TABLE\" variable is not set. Defaulting to a blank string."
[1] time="2024-01-09T14:59:50+06:00" level=warning msg="The \"DEEPLINKS_HASURA_STORAGE_URL\" variable is not set. Defaulting to a blank string."
[1] time="2024-01-09T14:59:50+06:00" level=warning msg="The \"MIGRATIONS_SCHEMA\" variable is not set. Defaulting to a blank string."
[1] time="2024-01-09T14:59:50+06:00" level=warning msg="The \"DEEPLINKS_PORT\" variable is not set. Defaulting to a blank string."
[1] time="2024-01-09T14:59:50+06:00" level=warning msg="The \"GITPOD_TASKS\" variable is not set. Defaulting to a blank string."
[0] ready - started server on 0.0.0.0:3007, url: http://localhost:3007
[2]
[2] > @deep-foundation/hasura@0.0.61 docker-local
[2] > cd ./local && docker-compose -p deep up -d && cd ../
[2]
[3] - ready started server on 0.0.0.0:4000, url: http://localhost:4000
[2] Container deep-postgres Running
[2] Container deep-minio Running
[2] Container deep-hasura Running
[2] Container deep-hasura-storage Starting
[1]
[1] > @deep-foundation/deeplinks@0.0.324 launch
[1] > npm run package:build && node ./index.js;
[1]
[2] Container deep-hasura-storage Started
[3] - info Loaded env from /home/freephoenix888/Programming/dev/packages/sdk/.env.development
[2] npm run local-engine exited with code 0
[0] warn - Invalid next.config.js options detected:
[0] warn - The root value has an unexpected property, webpack5, 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).
[0] warn - The root value has an unexpected property, future, 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).
[0] 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).
[0] warn - See more info here: https://nextjs.org/docs/messages/invalid-next-config
[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/deeplinks@0.0.324 package:build
[1] > tsc --project tsconfig.json
[1]
[0] warn - The `app` directory is experimental. To enable, add `appDir: true` to your `next.config.js` configuration under `experimental`. See https://nextjs.org/docs/messages/experimental-app-dir-config
[0] warn - The `app` directory is experimental. To enable, add `appDir: true` to your `next.config.js` configuration under `experimental`. See https://nextjs.org/docs/messages/experimental-app-dir-config
[3] - event compiled client and server successfully in 213 ms (20 modules)
[3] - wait compiling...
[0] event - compiled client and server successfully in 754 ms (186 modules)
[3] - event compiled client and server successfully in 173 ms (20 modules)
[0] warn - The `app` directory is experimental. To enable, add `appDir: true` to your `next.config.js` configuration under `experimental`. See https://nextjs.org/docs/messages/experimental-app-dir-config
[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
[0] wait - compiling...
[0] event - compiled successfully in 107 ms (39 modules)
[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] 3:00:08 PM - Found 5 errors. Watching for file changes.
[0] wait - compiling / (client and server)...
[0] warn - The `app` directory is experimental. To enable, add `appDir: true` to your `next.config.js` configuration under `experimental`. See https://nextjs.org/docs/messages/experimental-app-dir-config
[0] error - ../deepcase/imports/client-handler.js:29:0
[0] Module not found: Can't resolve 'axios-hooks'
[0] 27 | import { useMinilinksFilter } from "@deep-foundation/deeplinks/imports/minilinks";
[0] 28 | import axios from 'axios';
[0] > 29 | import * as axiosHooks from 'axios-hooks';
[0] 30 | import * as classnames from 'classnames';
[0] 31 | import React, { useEffect, useRef, useState } from 'react';
[0] 32 | import * as motion from 'framer-motion';
[0]
[0] https://nextjs.org/docs/messages/module-not-found
[0]
[0] Import trace for requested module:
[0] ../deepcase/imports/cyto/editor.js
[0] ./pages/index.tsx
[0] warn - The `app` directory is experimental. To enable, add `appDir: true` to your `next.config.js` configuration under `experimental`. See https://nextjs.org/docs/messages/experimental-app-dir-config
[0] warn - The `app` directory is experimental. To enable, add `appDir: true` to your `next.config.js` configuration under `experimental`. See https://nextjs.org/docs/messages/experimental-app-dir-config
[0] wait - compiling /_error (client and server)...
[0] warn - The `app` directory is experimental. To enable, add `appDir: true` to your `next.config.js` configuration under `experimental`. See https://nextjs.org/docs/messages/experimental-app-dir-config
[0] error - ../deepcase/imports/client-handler.js:29:0
[0] Module not found: Can't resolve 'axios-hooks'
[0] 27 | import { useMinilinksFilter } from "@deep-foundation/deeplinks/imports/minilinks";
[0] 28 | import axios from 'axios';
[0] > 29 | import * as axiosHooks from 'axios-hooks';
[0] 30 | import * as classnames from 'classnames';
[0] 31 | import React, { useEffect, useRef, useState } from 'react';
[0] 32 | import * as motion from 'framer-motion';
[0]
[0] https://nextjs.org/docs/messages/module-not-found
[0]
[0] Import trace for requested module:
[0] ../deepcase/imports/cyto/editor.js
[0] ./pages/index.tsx

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.