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

yarn build fails #4

Open
golergka opened this issue Feb 14, 2023 · 2 comments
Open

yarn build fails #4

golergka opened this issue Feb 14, 2023 · 2 comments

Comments

@golergka
Copy link

golergka commented Feb 14, 2023

➜  react-bolivianite-grid git:(master) node --version
v18.6.0
➜  react-bolivianite-grid git:(master) yarn --version
1.22.19
➜  react-bolivianite-grid git:(master) yarn && yarn build
yarn install v1.22.19
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
✨  Done in 0.91s.
yarn run v1.22.19
$ ./node_modules/.bin/gulp
[17:20:48] Requiring external module ts-node/register
gulp[92564]: ../src/node_contextify.cc:698:static void node::contextify::ContextifyScript::New(const FunctionCallbackInfo<v8::Value> &): Assertion `args[1]->IsString()' failed.
 1: 0x10509ed85 node::Abort() (.cold.1) [/Users/golergka/.nvm/versions/node/v18.6.0/bin/node]
 2: 0x103b63f89 node::Abort() [/Users/golergka/.nvm/versions/node/v18.6.0/bin/node]
 3: 0x103b63d91 node::Assert(node::AssertionInfo const&) [/Users/golergka/.nvm/versions/node/v18.6.0/bin/node]
 4: 0x103b576be node::contextify::ContextifyScript::New(v8::FunctionCallbackInfo<v8::Value> const&) [/Users/golergka/.nvm/versions/node/v18.6.0/bin/node]
 5: 0x103d580c8 v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo) [/Users/golergka/.nvm/versions/node/v18.6.0/bin/node]
 6: 0x103d57894 v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<true>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, v8::internal::BuiltinArguments) [/Users/golergka/.nvm/versions/node/v18.6.0/bin/node]
 7: 0x103d5728b v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) [/Users/golergka/.nvm/versions/node/v18.6.0/bin/node]
 8: 0x1046b8f79 Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit [/Users/golergka/.nvm/versions/node/v18.6.0/bin/node]
error Command failed with signal "SIGABRT".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

May be I should be using a different node version? It would be a good idea to add .nvmrc file then to specify it.

@golergka
Copy link
Author

I've switched to yarn 2, doesn't work either:

➜  react-bolivianite-grid git:(master) ✗ yarn install
➤ YN0000: ┌ Resolution step
➤ YN0002: │ @types/gulp-typescript@npm:2.13.0 doesn't provide typescript (p10603), requested by gulp-typescript
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 0s 322ms
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed
➤ YN0000: Done with warnings in 0s 562ms
➜  react-bolivianite-grid git:(master) ✗ yarn build
command not found: ./node_modules/.bin/gulp
➜  react-bolivianite-grid git:(master) ✗ npx gulp
[17:27:27] Failed to load external module ts-node/register
[17:27:27] Error: Cannot find module 'ts-node/register' from '/Users/golergka/Projects/DeepChannel/react-bolivianite-grid'
[17:27:27] Failed to load external module typescript-node/register
[17:27:27] Error: Cannot find module 'typescript-node/register' from '/Users/golergka/Projects/DeepChannel/react-bolivianite-grid'
[17:27:27] Failed to load external module typescript-register
[17:27:27] Error: Cannot find module 'typescript-register' from '/Users/golergka/Projects/DeepChannel/react-bolivianite-grid'
[17:27:27] Failed to load external module typescript-require
[17:27:27] Error: Cannot find module 'typescript-require' from '/Users/golergka/Projects/DeepChannel/react-bolivianite-grid'
[17:27:27] Failed to load external module sucrase/register/ts
[17:27:27] Error: Cannot find module 'sucrase/register/ts' from '/Users/golergka/Projects/DeepChannel/react-bolivianite-grid'
[17:27:27] Failed to load external module @babel/register
[17:27:27] Error: Cannot find module '@babel/register' from '/Users/golergka/Projects/DeepChannel/react-bolivianite-grid'
[17:27:27] Local modules not found in ~/Projects/DeepChannel/react-bolivianite-grid
[17:27:27] Try running: yarn install

@golergka
Copy link
Author

The only way I was able to get this package to build is to use npm and node version 10:

➜  react-bolivianite-grid git:(master) ✗ nvm use 10
Now using node v10.24.1 (npm v6.14.12)
➜  react-bolivianite-grid git:(master) ✗ npm --version
6.14.12
➜  react-bolivianite-grid git:(master) ✗ node --version
v10.24.1
➜  react-bolivianite-grid git:(master) ✗ npm install && npm run build
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!

> es5-ext@0.10.62 postinstall /Users/golergka/Projects/DeepChannel/react-bolivianite-grid/node_modules/es5-ext
>  node -e "try{require('./_postinstall')}catch(e){}" || exit 0

updated 438 packages and audited 440 packages in 6.32s

15 packages are looking for funding
  run `npm fund` for details

found 18 vulnerabilities (1 low, 2 moderate, 13 high, 2 critical)
  run `npm audit fix` to fix them, or `npm audit` for details

> react-bolivianite-grid@1.6.0 build /Users/golergka/Projects/DeepChannel/react-bolivianite-grid
> gulp

[17:42:05] Requiring external module ts-node/register
[17:42:05] Using gulpfile ~/Projects/DeepChannel/react-bolivianite-grid/gulpfile.ts
[17:42:05] Starting 'build::cjs'...
[17:42:05] Starting 'build::es'...
[17:42:05] Starting 'copy'...
[17:42:05] Finished 'copy' after 112 ms
/Users/golergka/Projects/DeepChannel/react-bolivianite-grid/node_modules/@types/node/index.d.ts(39,1): error TS1084: Invalid 'reference' directive syntax.
TypeScript: 1 syntax error
TypeScript: emit succeeded (with errors)
/Users/golergka/Projects/DeepChannel/react-bolivianite-grid/node_modules/@types/node/index.d.ts(39,1): error TS1084: Invalid 'reference' directive syntax.
TypeScript: 1 syntax error
TypeScript: emit succeeded (with errors)
[17:42:08] Finished 'build::es' after 2.87 s
[17:42:08] Finished 'build::cjs' after 2.88 s
[17:42:08] Starting 'default'...
[17:42:08] Finished 'default' after 31 μs

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

1 participant