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

Three Build issues in docker #136

Closed
ravensorb opened this issue Dec 30, 2022 · 1 comment
Closed

Three Build issues in docker #136

ravensorb opened this issue Dec 30, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@ravensorb
Copy link

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
@ravensorb ravensorb added the bug Something isn't working label Dec 30, 2022
@MaxLeiter
Copy link
Owner

Thanks @ravensorb. I’m currently refactoring Drift and @kinghat is updating the docker stuff here: #135

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
None yet
Development

No branches or pull requests

2 participants