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

doc-app build failed #3782

Closed
crokobit opened this issue Oct 17, 2019 · 2 comments
Closed

doc-app build failed #3782

crokobit opened this issue Oct 17, 2019 · 2 comments

Comments

@crokobit
Copy link

crokobit commented Oct 17, 2019

Environment

If possible, link to a minimal repro (fork this code sandbox):

Steps to reproduce

  1. git clone repo
  2. run yarn in packages/docs-app/ folder

Actual behavior

Have errors

Expected behavior

Should have no errors.

Possible solution

Errors

 @blueprintjs/[email protected] $ yarn
yarn install v1.17.3
[1/5] 🔍  Validating package.json...
[2/5] 🔍  Resolving packages...
warning Resolution field "[email protected]" is incompatible with requested version "js-yaml@~3.6.0"
[3/5] 🚚  Fetching packages...
warning [email protected]: The engine "atom" appears to be invalid.
warning [email protected]: The engine "atom" appears to be invalid.
[4/5] 🔗  Linking dependencies...
warning " > [email protected]" has unmet peer dependency "stylelint@^9.8.0".
warning "stylelint-config-palantir > [email protected]" has unmet peer dependency "stylelint@^8.3.0 || ^9.0.0 || ^10.0.0".
warning "stylelint-config-palantir > [email protected]" has unmet peer dependency "stylelint@^9.10.1 || ^10.0.0".
warning " > [email protected]" has unmet peer dependency "stylelint@^8.0.0 || ^9.0.0 || ^10.0.0".
warning "stylelint-config-palantir > stylelint-config-standard > [email protected]" has unmet peer dependency "stylelint@^8.3.0 || ^9.0.0 || ^10.0.0".
warning " > @blueprintjs/[email protected]" has unmet peer dependency "react@^15.3.0 || 16".
warning " > @blueprintjs/[email protected]" has unmet peer dependency "react-dom@^15.3.0 || 16".
warning " > @blueprintjs/[email protected]" has unmet peer dependency "react@^15.3.0 || 16".
warning " > @blueprintjs/[email protected]" has unmet peer dependency "react-dom@^15.3.0 || 16".
warning " > @blueprintjs/[email protected]" has unmet peer dependency "react@^15.3.0 || 16".
warning " > @blueprintjs/[email protected]" has unmet peer dependency "react-dom@^15.3.0 || 16".
warning " > @blueprintjs/[email protected]" has unmet peer dependency "react@^15.3.0 || 16".
warning " > @blueprintjs/[email protected]" has unmet peer dependency "react-dom@^15.3.0 || 16".
warning " > @blueprintjs/[email protected]" has unmet peer dependency "react@>=15.3.0".
warning " > @blueprintjs/[email protected]" has unmet peer dependency "react@^15.3.0 || 16".
warning " > @blueprintjs/[email protected]" has unmet peer dependency "react-dom@^15.3.0 || 16".
warning " > @blueprintjs/[email protected]" has unmet peer dependency "tslint@^5.12.1".
warning "workspace-aggregator-1e5b344c-d411-4a51-aec9-1e2f477dec6b > @blueprintjs/core > [email protected]" has unmet peer dependency "node-sass@^4.5.3".
warning "workspace-aggregator-1e5b344c-d411-4a51-aec9-1e2f477dec6b > @blueprintjs/core > [email protected]" has unmet peer dependency "[email protected]".
warning "workspace-aggregator-1e5b344c-d411-4a51-aec9-1e2f477dec6b > @blueprintjs/docs-app > [email protected]" has unmet peer dependency "webpack@^4.0.0".
warning "workspace-aggregator-1e5b344c-d411-4a51-aec9-1e2f477dec6b > @blueprintjs/karma-build-scripts > [email protected]" has unmet peer dependency "webpack@^2.0.0 || ^3.0.0 || ^4.0.0".
warning "workspace-aggregator-1e5b344c-d411-4a51-aec9-1e2f477dec6b > @blueprintjs/karma-build-scripts > [email protected]" has unmet peer dependency "webpack@^4.0.0".
warning "workspace-aggregator-1e5b344c-d411-4a51-aec9-1e2f477dec6b > @blueprintjs/test-commons > [email protected]" has incorrect peer dependency "react@^15.5.0".
warning "workspace-aggregator-1e5b344c-d411-4a51-aec9-1e2f477dec6b > @blueprintjs/test-commons > [email protected]" has unmet peer dependency "react-dom@^15.5.0".
warning "workspace-aggregator-1e5b344c-d411-4a51-aec9-1e2f477dec6b > @blueprintjs/test-commons > [email protected]" has unmet peer dependency "react-test-renderer@^15.5.0".
warning "workspace-aggregator-1e5b344c-d411-4a51-aec9-1e2f477dec6b > @blueprintjs/test-commons > [email protected]" has unmet peer dependency "react-dom@^16.0.0-0".
warning "workspace-aggregator-1e5b344c-d411-4a51-aec9-1e2f477dec6b > @blueprintjs/tslint-config > [email protected]" has unmet peer dependency "tslint@^5.0.0".
warning "workspace-aggregator-1e5b344c-d411-4a51-aec9-1e2f477dec6b > @blueprintjs/tslint-config > [email protected]" has unmet peer dependency "tslint@^5.1.0".
warning "workspace-aggregator-1e5b344c-d411-4a51-aec9-1e2f477dec6b > @blueprintjs/docs-app > webpack-dev-server > [email protected]" has unmet peer dependency "webpack@^4.0.0".
[5/5] 🔨  Building fresh packages...
[-/8] ⠁ waiting...
[-/8] ⠁ waiting...
[8/8] ⠁ tree-sitter-typescript
[-/8] ⠂ waiting...
error /Users/crokobit/Office/blueprint/node_modules/tree-sitter-typescript: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: /Users/crokobit/Office/blueprint/node_modules/tree-sitter-typescript
Output:
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info spawn /usr/bin/python
gyp info spawn args [
gyp info spawn args   '/Users/crokobit/Office/blueprint/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/crokobit/Office/blueprint/node_modules/tree-sitter-typescript/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/crokobit/Office/blueprint/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/crokobit/.node-gyp/12.10.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/crokobit/.node-gyp/12.10.0',
gyp info spawn args   '-Dnode_gyp_dir=/Users/crokobit/Office/blueprint/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/crokobit/.node-gyp/12.10.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/crokobit/Office/blueprint/node_modules/tree-sitter-typescript',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
  CC(target) Release/obj.target/tree_sitter_tsx_binding/tsx/src/parser.o
  CC(target) Release/obj.target/tree_sitter_tsx_binding/tsx/src/scanner.o
  CXX(target) Release/obj.target/tree_sitter_tsx_binding/tsx/src/binding.o
../tsx/src/binding.cc:13:6: error: variable has incomplete type 'void'
void Init(Handle<Object> exports, Handle<Object> module) {
     ^
../tsx/src/binding.cc:13:11: error: use of undeclared identifier 'Handle'
void Init(Handle<Object> exports, Handle<Object> module) {
          ^
../tsx/src/binding.cc:13:18: error: 'Object' does not refer to a value
void Init(Handle<Object> exports, Handle<Object> module) {
                 ^
/Users/crokobit/.node-gyp/12.10.0/include/node/v8.h:3369:17: note: declared here
class V8_EXPORT Object : public Value {
                ^
../tsx/src/binding.cc:13:26: error: use of undeclared identifier 'exports'
void Init(Handle<Object> exports, Handle<Object> module) {
                         ^
../tsx/src/binding.cc:13:35: error: use of undeclared identifier 'Handle'
void Init(Handle<Object> exports, Handle<Object> module) {
                                  ^
../tsx/src/binding.cc:13:42: error: 'Object' does not refer to a value
void Init(Handle<Object> exports, Handle<Object> module) {
                                         ^
/Users/crokobit/.node-gyp/12.10.0/include/node/v8.h:3369:17: note: declared here
class V8_EXPORT Object : public Value {
                ^
../tsx/src/binding.cc:13:50: error: use of undeclared identifier 'module'
void Init(Handle<Object> exports, Handle<Object> module) {
                                                 ^
../tsx/src/binding.cc:13:57: error: expected ';' after top level declarator
void Init(Handle<Object> exports, Handle<Object> module) {
                                                        ^
                                                        ;
8 errors generated.
make: *** [Release/obj.target/tree_sitter_tsx_binding/tsx/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 (/Users/crokobit/Office/blueprint/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:209:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 18.7.0
gyp ERR! command "/Users/crokobit/.asdf/installs/nodejs/12.10.0/bin/node" "/Users/crokobit/Office/blueprint/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /Users/crokobit/Office/blueprint/node_modules/tree-sitter-typescript
@crokobit
Copy link
Author

Need help 😢

@adidahiya
Copy link
Contributor

duplicate of #3799, which has a little more info

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

2 participants