camunda-consulting / camunda-7-code-examples

Examples and demo applications built by the camunda consulting team

Home Page:http://camunda.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug in generic form example.

anborg opened this issue · comments

https://github.com/camunda-consulting/code/blob/4a62d4b44efb126b50f22a6f17273c7c98f8b6da/snippets/camunda-tasklist-examples/camunda-react-app/src/components/GenericForm.js#L6

×
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Check the render method of GenericForm.

I came across this, while searching for react or vue examples.

If this is a left over legacy code, please consider deleting, so people can avoid wasting time.

Here is the error log from camunda-vue-app "yarn install" - just the tail end of errors

/Users/prem/.node-gyp/14.5.0/include/node/v8config.h:402:39: note: expanded from macro 'V8_DEPRECATE_SOON'
# define V8_DEPRECATE_SOON(message) [[deprecated(message)]]
                                      ^
1 warning and 7 errors generated.
make: *** [Release/obj.target/binding/src/binding.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Volumes/data01/projects/projects_js/code/snippets/camunda-tasklist-examples/camunda-vue-app/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:314:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Darwin 19.4.0
gyp ERR! command "/usr/local/Cellar/node/14.5.0/bin/node" "/Volumes/data01/projects/projects_js/code/snippets/camunda-tasklist-examples/camunda-vue-app/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Volumes/data01/projects/projects_js/code/snippets/camunda-tasklist-examples/camunda-vue-app/node_modules/node-sass
gyp ERR! node -v v14.5.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 

https://github.com/camunda-consulting/code/blob/4a62d4b44efb126b50f22a6f17273c7c98f8b6da/snippets/camunda-tasklist-examples/camunda-react-app/src/components/GenericForm.js#L6

×
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Check the render method of GenericForm.

Were you able to solve this problem?

nop. Perhaps stale repo.