Open FreePhoenix888 opened 10 months ago
I have tried to do the same again and the same error happens. Reproducible:
3:05:59 PM - Starting compilation in watch mode...
[4]
[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]
[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]
[2]
[2] > @deep-foundation/hasura@0.0.61 docker-local
[2] > cd ./local && docker-compose -p deep up -d && cd ../
[2]
[0] ready - started server on 0.0.0.0:3007, url: http://localhost:3007
[1] time="2024-01-09T15:06:00+06:00" level=warning msg="The \"DEEPLINKS_HASURA_STORAGE_URL\" variable is not set. Defaulting to a blank string."
[1] time="2024-01-09T15:06:00+06:00" level=warning msg="The \"RESERVED_LIFETIME_MS\" variable is not set. Defaulting to a blank string."
[1] time="2024-01-09T15:06:00+06:00" level=warning msg="The \"MIGRATIONS_DATE_TYPE_SQL\" variable is not set. Defaulting to a blank string."
[1] time="2024-01-09T15:06:00+06:00" level=warning msg="The \"DEFAULT_RL_CRON_SCHEDULE\" variable is not set. Defaulting to a blank string."
[1] time="2024-01-09T15:06:00+06:00" level=warning msg="The \"GITPOD_TASKS\" variable is not set. Defaulting to a blank string."
[1] time="2024-01-09T15:06:00+06:00" level=warning msg="The \"MIGRATIONS_SCHEMA\" variable is not set. Defaulting to a blank string."
[1] time="2024-01-09T15:06:00+06:00" level=warning msg="The \"MIGRATIONS_RL_TABLE\" variable is not set. Defaulting to a blank string."
[1] time="2024-01-09T15:06:00+06:00" level=warning msg="The \"DEEPLINKS_PORT\" variable is not set. Defaulting to a blank string."
[1] time="2024-01-09T15:06:00+06:00" level=warning msg="The \"GITPOD_GIT_USER_EMAIL\" variable is not set. Defaulting to a blank string."
[1] time="2024-01-09T15:06:00+06:00" level=warning msg="The \"MOESIF_TOKEN\" variable is not set. Defaulting to a blank string."
[3] - ready started server on 0.0.0.0:4000, url: http://localhost:4000
[2] Container deep-minio Running
[2] Container deep-postgres Running
[2] Container deep-hasura Running
[2] Container deep-hasura-storage Running
[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 launch
[1] > npm run package:build && node ./index.js;
[1]
[1]
[1] > @deep-foundation/deeplinks@0.0.324 package:build
[1] > tsc --project tsconfig.json
[1]
[3] - event compiled client and server successfully in 223 ms (20 modules)
[3] - wait compiling...
[3] - event compiled client and server successfully in 163 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
[0] error - ./pages/_document.jsx:3:0
[0] Module not found: Can't resolve '@deep-foundation/deepcase/imports/theme/theme'
[0] 1 | import Document, { Html, Head, Main, NextScript } from 'next/document';
[0] 2 | import { ColorModeScript } from '@chakra-ui/react';
[0] > 3 | import theme from '@deep-foundation/deepcase/imports/theme/theme';
[0] 4 |
[0] 5 | class MyDocument extends Document {
[0] 6 | static async getInitialProps(ctx) {
[0]
[0] https://nextjs.org/docs/messages/module-not-found
[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 200 ms (39 modules)
[0] wait - compiling / (client and server)...
[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:06:18 PM - Found 5 errors. Watching for file changes.
[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
[0] warn - Fast Refresh had to perform a full reload due to a runtime error.
[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
There is actually no axios-hooks in deepcase:
freephoenix888@FreePhoenix888:~/Programming/dev/packages/deepcase$ npm ls axios-hooks
@deep-foundation/dev@0.0.21 /home/freephoenix888/Programming/dev
└── (empty)
Looks like npm install
or npm clean-install
was not executed in deepcase:
freephoenix888@FreePhoenix888:~/Programming/dev/packages/deepcase$ npm i axios-hooks
up to date, audited 3245 packages in 8s
226 packages are looking for funding
run `npm fund` for details
54 vulnerabilities (23 moderate, 31 high)
To address issues that do not require attention, run:
npm audit fix
To address all issues possible (including breaking changes), run:
npm audit fix --force
Some issues need review, and may require choosing
a different dependency.
Run `npm audit` for details.
freephoenix888@FreePhoenix888:~/Programming/dev/packages/deepcase$ npm ls axios-hooks
@deep-foundation/dev@0.0.21 /home/freephoenix888/Programming/dev
└─┬ @deep-foundation/deepcase@0.0.101 -> ./packages/deepcase
└── axios-hooks@4.0.0
freephoenix888@FreePhoenix888:~/Programming/dev/packages/deepcase$ git status
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
freephoenix888@FreePhoenix888:~/Programming/dev/packages/deepcase$ grep "axios-hooks" ./package.json
"axios-hooks": "^4.0.0",
@Konard , why do we run npm run packages
but not npm run packages:ci
? We have such gulp script:
https://github.com/deep-foundation/dev/blob/bafba15b0744dc046ab72a96bd581c83daa1eb65/gulpfile.ts#L119
@Konard , why do we run
npm run packages
but notnpm run packages:ci
?
@FreePhoenix888, we do run it:
@Konard , why do we run
npm run packages
but notnpm run packages:ci
?We do run it:
🤔 Why were not deepcase
dependencies installed then? What do you think?
🤔 Why were not
deepcase
dependencies installed then? What do you think?
Because it is npm workspace
now. And all its dependencies are installed using npm ci
in dev
repository.
We use workspaces
to allow simplification of development workflow. Now we can just make changes in deeplinks
, deepcase
and deepcase-app
repositories and all of them immediately synced with Deep.Case App opened on 3007 port.
🤔 Why were not
deepcase
dependencies installed then? What do you think?Because it is
npm workspace
now. And all its dependencies are installed usingnpm ci
indev
repository.We use
workspaces
to allow simplification of development workflow. Now we can just make changes indeeplinks
,deepcase
anddeepcase-app
repositories and all of them immediately synced with Deep.Case App opened on 3007 port.
Why does this error happen then?
Why does this error happen then?
Because than you make npm ci
or npm i
in deepcase
repository, you break symbolic link with dev/node_modules
.
We now use workspaces, so for these repositories:
We may no longer npm ci
or npm i
do as before.
Why does this error happen then?
Because than you make
npm ci
ornpm i
indeepcase
repository, you break symbolic link withdev/node_modules
.We now use workspaces, so for these repositories:
We may no longer
npm ci
ornpm i
do as before.
This error was caused when I have used this code:
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
I have not used npm i/npm ci until I tried to fix that error
How to reproduce
Error