-
-
Notifications
You must be signed in to change notification settings - Fork 60
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
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 > flatten@1.0.3: flatten is deprecated in favor of utility frameworks such as lodash.
warning typescript-plugin-css-modules > stylus > css-parse > css > source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
warning typescript-plugin-css-modules > stylus > css-parse > css > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
warning typescript-plugin-css-modules > stylus > css-parse > css > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
warning typescript-plugin-css-modules > stylus > css-parse > css > source-map-resolve > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
warning typescript-plugin-css-modules > stylus > css-parse > css > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
[2/4] Fetching packages...
error jest@29.3.1: 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
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working