Issues in building with pkg #18

Open
opened 2018-10-13 18:57:24 +00:00 by josh · 0 comments
Collaborator

I am building Telebit with pkg and am encountering the following errors:

> Warning Cannot resolve 'state.sortingHat'
  /home/josh/telebitlinux/lib/remote.js
  Dynamic require may fail at run time, because the requested file
  is unknown at compilation time and not included into executable.
  Use a string literal as an argument for 'require', or leave it
  as is and specify the resolved file name in 'scripts' option.
> Warning Cannot resolve 'pathname'
  /home/josh/telebitlinux/lib/updater.js
  Dynamic require may fail at run time, because the requested file
  is unknown at compilation time and not included into executable.
  Use a string literal as an argument for 'require', or leave it
  as is and specify the resolved file name in 'scripts' option.
> Warning Cannot stat, ENOENT
  /home/josh/telebitlinux/usr/share/bin/telebitd.js
  The file was required from '/home/josh/telebitlinux/usr/share/install-launcher.js'
> Warning Cannot stat, ENOENT
  /home/josh/telebitlinux/usr/share/dist/etc/systemd/system/telebit.service
  The file was required from '/home/josh/telebitlinux/usr/share/template-launcher.js'
> Warning Cannot stat, ENOENT
  /home/josh/telebitlinux/usr/share/dist/etc/skel/.config/systemd/user/telebit.service
  The file was required from '/home/josh/telebitlinux/usr/share/template-launcher.js'
> Warning Cannot stat, ENOENT
  /home/josh/telebitlinux/usr/share/dist/Library/LaunchDaemons/cloud.telebit.remote.plist
  The file was required from '/home/josh/telebitlinux/usr/share/template-launcher.js'
> Warning Cannot stat, ENOENT
  /home/josh/telebitlinux/usr/share/dist/etc/skel/Library/LaunchAgents/cloud.telebit.remote.plist
  The file was required from '/home/josh/telebitlinux/usr/share/template-launcher.js'

This is because it requires a little bit of configuration tweaking to work properly: https://github.com/zeit/pkg#config

There's a chance it might work as desired, but it also might not.

I am building Telebit with `pkg` and am encountering the following errors: ``` > Warning Cannot resolve 'state.sortingHat' /home/josh/telebitlinux/lib/remote.js Dynamic require may fail at run time, because the requested file is unknown at compilation time and not included into executable. Use a string literal as an argument for 'require', or leave it as is and specify the resolved file name in 'scripts' option. > Warning Cannot resolve 'pathname' /home/josh/telebitlinux/lib/updater.js Dynamic require may fail at run time, because the requested file is unknown at compilation time and not included into executable. Use a string literal as an argument for 'require', or leave it as is and specify the resolved file name in 'scripts' option. > Warning Cannot stat, ENOENT /home/josh/telebitlinux/usr/share/bin/telebitd.js The file was required from '/home/josh/telebitlinux/usr/share/install-launcher.js' > Warning Cannot stat, ENOENT /home/josh/telebitlinux/usr/share/dist/etc/systemd/system/telebit.service The file was required from '/home/josh/telebitlinux/usr/share/template-launcher.js' > Warning Cannot stat, ENOENT /home/josh/telebitlinux/usr/share/dist/etc/skel/.config/systemd/user/telebit.service The file was required from '/home/josh/telebitlinux/usr/share/template-launcher.js' > Warning Cannot stat, ENOENT /home/josh/telebitlinux/usr/share/dist/Library/LaunchDaemons/cloud.telebit.remote.plist The file was required from '/home/josh/telebitlinux/usr/share/template-launcher.js' > Warning Cannot stat, ENOENT /home/josh/telebitlinux/usr/share/dist/etc/skel/Library/LaunchAgents/cloud.telebit.remote.plist The file was required from '/home/josh/telebitlinux/usr/share/template-launcher.js' ``` This is because it requires a little bit of configuration tweaking to work properly: [https://github.com/zeit/pkg#config](https://github.com/zeit/pkg#config) There's a chance it might work as desired, but it also might not.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: coolaj86/telebit.js#18
No description provided.