forked from widgetbot-io-jumuro/embed
-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
Following error log - Same on Windows with git bash and ubuntu 18.04 -
scripts > nwb > babel-plugin-inferno@5.0.1" has unmet peer dependency "inferno@^ 5". [4/4] Building fresh packages... [1/8] ⢀ deasync [6/8] ⢀ javascript-obfuscator [3/8] ⢀ husky [4/8] ⢀ uws error /root/widgetbot/node_modules/deasync: Command failed. Exit code: 1 Command: node ./build.js Arguments: Directory: /root/widgetbot/node_modules/deasync Output: gyp info it worked if it ends with ok gyp info using node-gyp@5.0.5 gyp info using node@12.16.1 | linux | x64 gyp info find Python using Python version 2.7.17 found at "/usr/bin/python" gyp info spawn /usr/bin/python gyp info spawn args [ gyp info spawn args '/usr/lib/node_modules/npm/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 '/root/widgetbot/node_modules/deasync/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/root/.cache/node-gyp/12.16.1/include/node/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/12.16.1', gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/12.16.1/<(target_arch)/node.lib', gyp info spawn args '-Dmodule_root_dir=/root/widgetbot/node_modules/deasync', 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 ] Traceback (most recent call last): File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 47, in import gyp File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 10, in import gyp.input File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 7, in import ast ImportError: No module named ast gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16) gyp ERR! stack at ChildProcess.emit (events.js:311:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) gyp ERR! System Linux 4.15.0-74-generic gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /root/widgetbot/node_modules/deasync gyp ERR! node -v v12.16.1 error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I also get error building the crate package separately. -
ERROR in ./src/app/Embed/elements.ts Module not found: Error: Can't resolve '@widgetbot/react-embed' in '/root/widgetbot/packages/crate/src/app/Embed' @ ./src/app/Embed/elements.ts 7:0-47 46:41-50 @ ./src/app/Embed/index.tsx @ ./src/app/app.tsx @ ./src/app/index.tsx @ ./src/api/renderer/index.tsx @ ./src/api/index.ts @ ./src/umd.ts @ multi ./src/umd.ts ERROR in /root/widgetbot/packages/crate/src/api/renderer/index.tsx [tsl] ERROR in /root/widgetbot/packages/crate/src/api/renderer/index.tsx(1,21) TS2307: Cannot find module '@widgetbot/react-embed'. ERROR in /root/widgetbot/packages/crate/src/app/index.tsx [tsl] ERROR in /root/widgetbot/packages/crate/src/app/index.tsx(2,21) TS2307: Cannot find module '@widgetbot/react-embed'. ERROR in /root/widgetbot/packages/crate/src/app/Embed/elements.ts [tsl] ERROR in /root/widgetbot/packages/crate/src/app/Embed/elements.ts(3,23) TS2307: Cannot find module '@widgetbot/react-embed'. ERROR in /root/widgetbot/packages/crate/src/app/Embed/index.tsx [tsl] ERROR in /root/widgetbot/packages/crate/src/app/Embed/index.tsx(48,14) TS2322: Type '{ options: { preset: string; }; defer: boolean; onAPI: any; className: string; focusable: boolean; server: string; channel: string; shard: string; }' is not assignable to type '(IntrinsicAttributes & Attributes & Pick, never> & { theme?: any; } & { children?: ReactNode; }) | (IntrinsicA ttributes & ClassAttributes<{}> & Pick<...> & { ...; } & { ...; })'. Property 'options' does not exist on type '(IntrinsicAttributes & Attributes & Pick, never> & { theme?: any; } & { children?: ReactNode ; }) | (IntrinsicAttributes & ClassAttributes<{}> & Pick<...> & { ...; } & { ...; })'. ✖ Creating UMD builds Error running command: Build failed with errors. Error: Build failed with errors.
Metadata
Metadata
Assignees
Labels
No labels