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

Cannot get development environment running #69

Open
b-a0 opened this issue Nov 8, 2023 · 4 comments
Open

Cannot get development environment running #69

b-a0 opened this issue Nov 8, 2023 · 4 comments

Comments

@b-a0
Copy link

b-a0 commented Nov 8, 2023

I am trying to get v1.7.1 running (or any version for that matter) but I struggle with the various dependency versions.

Firstly: what node version should I use for v1.7.1?

Secondly: whenever I run npm install after cloning the v1.7.1 tag I get a dependency conflict:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/monaco-editor
npm ERR!   monaco-editor@"~0.18.1" from the root project
npm ERR!   peer monaco-editor@"*" from [email protected]
npm ERR!   node_modules/react-monaco-editor
npm ERR!     react-monaco-editor@"^0.34.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer monaco-editor@"^0.15.1" from [email protected]
npm ERR! node_modules/monaco-editor-webpack-plugin
npm ERR!   dev monaco-editor-webpack-plugin@"~1.7.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/monaco-editor
npm ERR!   peer monaco-editor@"^0.15.1" from [email protected]
npm ERR!   node_modules/monaco-editor-webpack-plugin
npm ERR!     dev monaco-editor-webpack-plugin@"~1.7.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

I then circumvent that with --legacy-peer-deps, which installs succesfully.

However, when I try to build with npm run build:prod I get module not found errors:

ERROR in ./node_modules/monaco-languageclient/lib/services.js
Module not found: Error: Can't resolve 'vscode-languageserver-protocol/lib/main' in '/app/node_modules/monaco-languageclient/lib'
ERROR in ./node_modules/monaco-languageclient/lib/connection.js
Module not found: Error: Can't resolve 'vscode-languageserver-protocol/lib/main' in '/app/node_modules/monaco-languageclient/lib'
ERROR in ./node_modules/monaco-languageclient/lib/monaco-converter.js
Module not found: Error: Can't resolve 'vscode-languageserver-protocol/lib/utils/is' in '/app/node_modules/monaco-languageclient/lib'
ERROR in ./node_modules/monaco-languageclient/lib/connection.js
Module not found: Error: Can't resolve 'vscode-languageserver-protocol/lib/utils/is' in '/app/node_modules/monaco-languageclient/lib'

What steps do I need to take to get any version of this great app running?

@nikeee
Copy link
Owner

nikeee commented Nov 8, 2023

Yeah, the build is currently broken. My intention was to fix this with a rewrite, but I did not manage to get there until now. I'll see if I can speed this up.

@b-a0
Copy link
Author

b-a0 commented Nov 9, 2023

I see, thanks for the fast response. I managed to get v1.6.0 working with below Dockerfile, but failed to do the same for more recent versions.

These is the Dockerfile I used

FROM node:14-bullseye

RUN git clone --depth 1 --branch v1.6.0 https://github.com/nikeee/edotor.net.git edotor
WORKDIR /edotor

RUN npm install
RUN npm install -g serve
RUN npm run build:prod

# EXPOSE 3000
CMD ["serve", "-s", "dist"]

@nikto-b
Copy link

nikto-b commented Aug 15, 2024

Any updates for a buildscripts fixes?

@nikeee
Copy link
Owner

nikeee commented Aug 15, 2024

Nope

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants