Closed habuka036 closed 6 years ago
I'm have trouble replicating the codemirror.ts error, but I did notice that you're running a newer version of Typescript (2.6.2) than is in the yarn.lock file (2.4.2), so perhaps you have a dependency that's incompatible? I would suggest trying the following: remove your existing admin/node_modules
folder and use yarn to install the javascript deps.
I also see that the go-bindata
binary can't be found, you should try adding $GOPATH/bin
to your $PATH
to fix that issue.
Hope that helps!
Hi octavore, thank you for your response.
I tried to re-compile with your advice, but I was not able to compile as successfully in my environment. In next, I created another environment that following:
I modified admin/src/js/types/codemirror.ts because I'll resolve error message "error TS2307: Cannot find module 'CodeMirror'"
--- ./admin/src/js/types/codemirror.ts.orig 2018-02-06 00:35:39.333021581 +0000
+++ ./admin/src/js/types/codemirror.ts 2018-02-05 06:29:07.876746213 +0000
@@ -2,7 +2,7 @@
// http://www.jbrantly.com/es6-modules-with-typescript-and-webpack/
// https://stackoverflow.com/questions/38168733/typescript-export-all-functions-in-a-namespace
// reexport codemirror type from namespace
-import * as CM from 'CodeMirror';
+import * as CM from 'codemirror';
declare global {
var CodeMirror: typeof CM;
}
and, I modified Makefile because I occur error "go-bindata: not found" in this environment too after I add "$GOPATH/bin" to $PATH.
--- ./admin/gulp/bindata.js.orig 2018-02-06 00:52:40.055557630 +0000
+++ ./admin/gulp/bindata.js 2018-02-05 03:56:06.709228156 +0000
@@ -11,7 +11,7 @@
let bindata = () =>
gulp.src('build/*', { read: false })
.pipe(shell([
- `go-bindata -pkg admin -prefix build ${buildPaths.join(' ')}`
+ `~/go/bin/go-bindata -pkg admin -prefix build ${buildPaths.join(' ')}`
], {
env: {
PATH: `${process.env.GOPATH}/bin`
Then I successfully compiled, but unfortunately, ketchup not rendering correctly in compose page as following:
By the way, are you planning to release next version ketchup as corresponding to bindext? If you have planned next release, could you please tell me you when to release that?
Thank you.
Thanks, I think I've figured out the codemirror error (I have a case-insensitive filesystem, so the incorrectly cased import worked on my computer). For the rendering problem, could you try this branch and let me know if it solves the issue? I've tweaked the Quill import to use dynamic imports, maybe that will help.
Thank you. I compiled it branch, I appear successful.
Thank you again.
Hello.
I got following error when trying to compile ketchup.
My environment is:
Could you please let me know what requirements for compiling ketchup.
Thanks.