You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Trying to do a docker-compose build in the src folder and run into three different errors.
**error 1: yarn.lock cannot be found **
Step 4/29 : COPY package.json yarn.lock ./
1 error occurred:
* Status: COPY failed: file not found in build context or excluded by .dockerignore: stat yarn.lock: file does not exist, Code: 1
error 2: build fails on node 17, seems to require either 16 or 18
yarn install v1.22.19
info No lockfile found.
[1/4] Resolving packages...
warning next-unused > madge > detective-postcss > postcss-values-parser > [email protected]: flatten is deprecated in favor of utility frameworks such as lodash.
warning typescript-plugin-css-modules > stylus > css-parse > css > [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
warning typescript-plugin-css-modules > stylus > css-parse > css > [email protected]: Please see https://github.com/lydell/urix#deprecated
warning typescript-plugin-css-modules > stylus > css-parse > css > source-map-resolve > [email protected]: Please see https://github.com/lydell/urix#deprecated
warning typescript-plugin-css-modules > stylus > css-parse > css > source-map-resolve > [email protected]: See https://github.com/lydell/source-map-url#deprecated
warning typescript-plugin-css-modules > stylus > css-parse > css > source-map-resolve > [email protected]: https://github.com/lydell/resolve-url#deprecated
[2/4] Fetching packages...
error [email protected]: The engine "node" is incompatible with this module. Expected version "^14.15.0 || ^16.10.0 || >=18.0.0". Got "17.9.1"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
1 error occurred:
* Status: The command '/bin/sh -c yarn install --frozen-lockfile' returned a non-zero code: 1, Code: 1
error 3: (after removing copy for yarn.lock and updating image to use node v18) get the following
./app/(posts)/components/file-dropdown/index.tsx:48:19
Type error: Property 'id' does not exist on type '{ icon: Element; content: string; html: string; }'.
46 | <ul className={styles.content}>
47 | {items.map((item) => (
> 48 | <li key={item.id}>
| ^
49 | <Link href={`#${item.title}`} className={styles.listItem}>
50 | <span className={styles.fileIcon}>{item.icon}</span>
51 | <span className={styles.fileTitle}>
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
1 error occurred:
* Status: The command '/bin/sh -c yarn build' returned a non-zero code: 1, Code: 1
To Reproduce
run: docker-compose build (in the src folder)
Note: this is a clean env where a local build has NOT been done (git pull, cd src, docker-compose build)
Expected behavior
Docker image build successfully
Screenshots
Output above in the steps
Desktop (please complete the following information):
OS: Ubuntu 22.04
The text was updated successfully, but these errors were encountered:
Describe the bug
Trying to do a docker-compose build in the src folder and run into three different errors.
**error 1: yarn.lock cannot be found **
error 2: build fails on node 17, seems to require either 16 or 18
error 3: (after removing copy for yarn.lock and updating image to use node v18) get the following
To Reproduce
run: docker-compose build (in the src folder)
Note: this is a clean env where a local build has NOT been done (git pull, cd src, docker-compose build)
Expected behavior
Docker image build successfully
Screenshots
Output above in the steps
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: