Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Editor Page -> Editor: Avro #6

Open
EricWittmann opened this issue Apr 29, 2022 · 5 comments
Open

Editor Page -> Editor: Avro #6

EricWittmann opened this issue Apr 29, 2022 · 5 comments

Comments

@EricWittmann
Copy link
Member

No description provided.

@EricWittmann EricWittmann changed the title Editor: Avro Editor Page -> Editor: Avro Apr 29, 2022
@craicoverflow
Copy link

/assign me.

@craicoverflow craicoverflow self-assigned this Jun 7, 2022
@craicoverflow
Copy link

I have found a potential editor to use for Avro. It is still a text editor, but provides real-time Avro validation and renders the output in real-time also.

craicoverflow/javro#1

Please take a look when you get a chance. The original source of this is a Electron application built in React so all that is required are some small build configuration changes and we can use it.

cc @EricWittmann @carlesarnal

@EricWittmann
Copy link
Member Author

@craicoverflow I tried to build your javro branch but I got this result on the first step of yarn:


WARNING in ./node_modules/electron-debug/index.js 109:45-58
Critical dependency: the request of a dependency is an expression
 @ dll renderer renderer[5]

WARNING in ./node_modules/electron-debug/index.js 110:61-74
Critical dependency: the request of a dependency is an expression
 @ dll renderer renderer[5]

WARNING in ./node_modules/loader-runner/lib/loadLoader.js 19:16-36
Critical dependency: the request of a dependency is an expression
 @ ./node_modules/loader-runner/lib/LoaderRunner.js 7:17-40
 @ ./node_modules/webpack/lib/NormalModule.js 9:35-59
 @ ./node_modules/webpack/lib/LoaderTargetPlugin.js 8:21-46
 @ ./node_modules/monaco-editor-webpack-plugin/out/plugins/AddWorkerEntryPointPlugin.js 5:27-68
 @ ./node_modules/monaco-editor-webpack-plugin/out/index.js 6:36-82
 @ dll renderer renderer[11]

WARNING in ./node_modules/monaco-editor-webpack-plugin/out/index.js 26:11-68
Critical dependency: the request of a dependency is an expression
 @ dll renderer renderer[11]

WARNING in ./node_modules/terser-webpack-plugin/dist/minify.js 43:118-125
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
 @ ./node_modules/terser-webpack-plugin/dist/index.js 34:4-23 401:19-46
 @ ./node_modules/webpack/lib/config/defaults.js 1164:25-57
 @ ./node_modules/webpack/lib/index.js 337:10-66
 @ ./node_modules/monaco-editor-webpack-plugin/out/index.js 3:16-34
 @ dll renderer renderer[11]

WARNING in ./node_modules/terser-webpack-plugin/dist/utils.js 517:18-51
Module not found: Error: Can't resolve 'uglify-js/package.json' in 'C:\Users\Eric\git\api-designer\javro\node_modules\
terser-webpack-plugin\dist'
 @ ./node_modules/terser-webpack-plugin/dist/index.js 28:4-22
 @ ./node_modules/webpack/lib/config/defaults.js 1164:25-57
 @ ./node_modules/webpack/lib/index.js 337:10-66
 @ ./node_modules/monaco-editor-webpack-plugin/out/index.js 3:16-34
 @ dll renderer renderer[11]

WARNING in ./node_modules/terser-webpack-plugin/dist/utils.js 593:18-51
Module not found: Error: Can't resolve '@swc/core/package.json' in 'C:\Users\Eric\git\api-designer\javro\node_modules\
terser-webpack-plugin\dist'
 @ ./node_modules/terser-webpack-plugin/dist/index.js 28:4-22
 @ ./node_modules/webpack/lib/config/defaults.js 1164:25-57
 @ ./node_modules/webpack/lib/index.js 337:10-66
 @ ./node_modules/monaco-editor-webpack-plugin/out/index.js 3:16-34
 @ dll renderer renderer[11]

WARNING in ./node_modules/terser-webpack-plugin/dist/utils.js 674:18-49
Module not found: Error: Can't resolve 'esbuild/package.json' in 'C:\Users\Eric\git\api-designer\javro\node_modules\te
rser-webpack-plugin\dist'
 @ ./node_modules/terser-webpack-plugin/dist/index.js 28:4-22
 @ ./node_modules/webpack/lib/config/defaults.js 1164:25-57
 @ ./node_modules/webpack/lib/index.js 337:10-66
 @ ./node_modules/monaco-editor-webpack-plugin/out/index.js 3:16-34
 @ dll renderer renderer[11]

WARNING in ./node_modules/terser-webpack-plugin/node_modules/jest-worker/build/base/BaseWorkerPool.js 111:19-46
Critical dependency: the request of a dependency is an expression
 @ ./node_modules/terser-webpack-plugin/node_modules/jest-worker/build/WorkerPool.js 8:45-77
 @ ./node_modules/terser-webpack-plugin/node_modules/jest-worker/build/index.js 38:41-64
 @ ./node_modules/terser-webpack-plugin/dist/index.js 20:4-26
 @ ./node_modules/webpack/lib/config/defaults.js 1164:25-57
 @ ./node_modules/webpack/lib/index.js 337:10-66
 @ ./node_modules/monaco-editor-webpack-plugin/out/index.js 3:16-34
 @ dll renderer renderer[11]

WARNING in ./node_modules/terser-webpack-plugin/node_modules/jest-worker/build/index.js 68:19-38
Critical dependency: the request of a dependency is an expression
 @ ./node_modules/terser-webpack-plugin/dist/index.js 20:4-26
 @ ./node_modules/webpack/lib/config/defaults.js 1164:25-57
 @ ./node_modules/webpack/lib/index.js 337:10-66
 @ ./node_modules/monaco-editor-webpack-plugin/out/index.js 3:16-34
 @ dll renderer renderer[11]

WARNING in ./node_modules/terser-webpack-plugin/node_modules/jest-worker/build/workers/processChild.js 89:15-28
Critical dependency: the request of a dependency is an expression
 @ ./node_modules/terser-webpack-plugin/node_modules/jest-worker/build/workers/ChildProcessWorker.js 134:6-39
 @ ./node_modules/terser-webpack-plugin/node_modules/jest-worker/build/WorkerPool.js 41:15-62
 @ ./node_modules/terser-webpack-plugin/node_modules/jest-worker/build/index.js 38:41-64
 @ ./node_modules/terser-webpack-plugin/dist/index.js 20:4-26
 @ ./node_modules/webpack/lib/config/defaults.js 1164:25-57
 @ ./node_modules/webpack/lib/index.js 337:10-66
 @ ./node_modules/monaco-editor-webpack-plugin/out/index.js 3:16-34
 @ dll renderer renderer[11]

WARNING in ./node_modules/terser-webpack-plugin/node_modules/jest-worker/build/workers/processChild.js 105:15-28
Critical dependency: the request of a dependency is an expression
 @ ./node_modules/terser-webpack-plugin/node_modules/jest-worker/build/workers/ChildProcessWorker.js 134:6-39
 @ ./node_modules/terser-webpack-plugin/node_modules/jest-worker/build/WorkerPool.js 41:15-62
 @ ./node_modules/terser-webpack-plugin/node_modules/jest-worker/build/index.js 38:41-64
 @ ./node_modules/terser-webpack-plugin/dist/index.js 20:4-26
 @ ./node_modules/webpack/lib/config/defaults.js 1164:25-57
 @ ./node_modules/webpack/lib/index.js 337:10-66
 @ ./node_modules/monaco-editor-webpack-plugin/out/index.js 3:16-34
 @ dll renderer renderer[11]

WARNING in ./node_modules/webpack/lib/serialization/ObjectMiddleware.js 647:9-25
Critical dependency: the request of a dependency is an expression
 @ ./node_modules/webpack/lib/util/serialization.js 19:1-45
 @ ./node_modules/webpack/lib/index.js 554:10-41
 @ ./node_modules/monaco-editor-webpack-plugin/out/index.js 3:16-34
 @ dll renderer renderer[11]

13 warnings have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

ERROR in ./node_modules/terser-webpack-plugin/dist/utils.js 479:6-26
Module not found: Error: Can't resolve 'uglify-js' in 'C:\Users\Eric\git\api-designer\javro\node_modules\terser-webpac
k-plugin\dist'
 @ ./node_modules/terser-webpack-plugin/dist/index.js 28:4-22
 @ ./node_modules/webpack/lib/config/defaults.js 1164:25-57
 @ ./node_modules/webpack/lib/index.js 337:10-66
 @ ./node_modules/monaco-editor-webpack-plugin/out/index.js 3:16-34
 @ dll renderer renderer[11]

ERROR in ./node_modules/terser-webpack-plugin/dist/utils.js 557:14-34
Module not found: Error: Can't resolve '@swc/core' in 'C:\Users\Eric\git\api-designer\javro\node_modules\terser-webpac
k-plugin\dist'
 @ ./node_modules/terser-webpack-plugin/dist/index.js 28:4-22
 @ ./node_modules/webpack/lib/config/defaults.js 1164:25-57
 @ ./node_modules/webpack/lib/index.js 337:10-66
 @ ./node_modules/monaco-editor-webpack-plugin/out/index.js 3:16-34
 @ dll renderer renderer[11]

ERROR in ./node_modules/terser-webpack-plugin/dist/utils.js 635:18-36
Module not found: Error: Can't resolve 'esbuild' in 'C:\Users\Eric\git\api-designer\javro\node_modules\terser-webpack-
plugin\dist'
 @ ./node_modules/terser-webpack-plugin/dist/index.js 28:4-22
 @ ./node_modules/webpack/lib/config/defaults.js 1164:25-57
 @ ./node_modules/webpack/lib/index.js 337:10-66
 @ ./node_modules/monaco-editor-webpack-plugin/out/index.js 3:16-34
 @ dll renderer renderer[11]

3 errors have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

webpack 5.73.0 compiled with 3 errors and 13 warnings in 17821 ms
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

@craicoverflow
Copy link

So, these are mainly build warnings that happen on postinstall. Can you try to run yarn start anyway?

Note: I have STILL not been successful in being able to run this web app anymore...

@craicoverflow
Copy link

I (finally) managed to get this working. I was seeing a completely different set of errors to you. It was happening because there was a transitive dependency depending upon React v18, but the application using v18. This normally is not a problem, but as yet there are no typings published for v18, so it hit all sorts of mismatch errors.
https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react

I was able to force them to use v17: https://github.com/craicoverflow/javro/blob/eed55a0407318fa7cb543c91943b575be63238ee/package.json#L149-L152

From there the other errors were straightforward to fix.

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

No branches or pull requests

2 participants