Skip to content

Instantly share code, notes, and snippets.

@davehorton
Created October 15, 2022 17:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davehorton/5ef0c9eb25ab035c4d4ade2ac9d87961 to your computer and use it in GitHub Desktop.
Save davehorton/5ef0c9eb25ab035c4d4ade2ac9d87961 to your computer and use it in GitHub Desktop.
$ npm run watch
> @nextiva/platform-ui__browser-softphone@5.12.0-dev watch /Users/dhorton/beachdog-enterprises/beachdog-networks/git/nextiva/browser-softphone-ui
> webpack --watch --mode=development --config ./config/webpack.config.base.js
src/components/CallAnsweredWidget/components/CallInfo/CallerDisplayName.tsx:2:8 - error TS1259: Module '"/Users/dhorton/beachdog-enterprises/beachdog-networks/git/nextiva/browser-softphone-ui/node_modules/@types/react/index"' can only be default-imported using the 'esModuleInterop' flag
2 import React, { ReactElement, useRef } from 'react';
~~~~~
node_modules/@types/react/index.d.ts:65:1
65 export = React;
~~~~~~~~~~~~~~~
This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
src/components/CallAnsweredWidget/components/CallInfo/CallerDisplayName.tsx:4:32 - error TS2307: Cannot find module 'hooks/useContactName' or its corresponding type declarations.
4 import { useContactName } from 'hooks/useContactName';
~~~~~~~~~~~~~~~~~~~~~~
src/components/CallAnsweredWidget/components/CallInfo/CallInfo.tsx:2:8 - error TS1259: Module '"/Users/dhorton/beachdog-enterprises/beachdog-networks/git/nextiva/browser-softphone-ui/node_modules/@types/react/index"' can only be default-imported using the 'esModuleInterop' flag
2 import React, { Fragment, useState } from 'react';
~~~~~
node_modules/@types/react/index.d.ts:65:1
65 export = React;
~~~~~~~~~~~~~~~
This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
src/components/CallAnsweredWidget/components/CallInfo/CallInfo.tsx:5:39 - error TS2307: Cannot find module 'utils/getContactDisplayName' or its corresponding type declarations.
5 import { getContactDisplayName } from 'utils/getContactDisplayName';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/components/CallAnsweredWidget/components/CallInfo/CallInfo.tsx:6:57 - error TS2307: Cannot find module 'moduleExport/selectors' or its corresponding type declarations.
6 import { getConferenceInfoForCallId, getSipSlice } from 'moduleExport/selectors';
~~~~~~~~~~~~~~~~~~~~~~~~
src/components/CallAnsweredWidget/components/CallInfo/CallInfo.tsx:7:40 - error TS2307: Cannot find module 'moduleExport' or its corresponding type declarations.
7 import { SipReduxCommandCreator } from 'moduleExport';
~~~~~~~~~~~~~~
src/components/CallAnsweredWidget/components/CallInfo/CallInfo.tsx:8:43 - error TS2307: Cannot find module 'hooks/useConferenceParticipants' or its corresponding type declarations.
8 import { useConferenceParticipants } from 'hooks/useConferenceParticipants';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/components/CallAnsweredWidget/components/CallInfo/CallInfo.tsx:9:31 - error TS2307: Cannot find module 'hooks/useNavigation' or its corresponding type declarations.
9 import { useNavigation } from 'hooks/useNavigation';
~~~~~~~~~~~~~~~~~~~~~
src/components/CallAnsweredWidget/components/CallInfo/CallInfo.tsx:10:28 - error TS2307: Cannot find module 'components/DialerUi/components/DialButton' or its corresponding type declarations.
10 import { DialButton } from 'components/DialerUi/components/DialButton';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/components/CallAnsweredWidget/components/CallInfo/CallInfo.tsx:11:37 - error TS2307: Cannot find module 'hooks/useFeatureFlagState' or its corresponding type declarations.
11 import { useFeatureFlagState } from 'hooks/useFeatureFlagState';
~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/components/CallAnsweredWidget/components/CallInfo/CallInfo.tsx:12:27 - error TS2307: Cannot find module 'components/CallTimer' or its corresponding type declarations.
12 import { CallTimer } from 'components/CallTimer';
~~~~~~~~~~~~~~~~~~~~~~
src/components/CallAnsweredWidget/components/CallInfo/CallInfo.tsx:13:36 - error TS2307: Cannot find module 'components/CallAnsweredAvatar' or its corresponding type declarations.
13 import { CallAnsweredAvatar } from 'components/CallAnsweredAvatar';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/components/CallAnsweredWidget/components/CallInfo/CallInfo.tsx:19:32 - error TS2307: Cannot find module 'types/redux/state/SipState' or its corresponding type declarations.
19 import { Call, SipState } from 'types/redux/state/SipState';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/components/CallAnsweredWidget/components/CallInfo/CallInfo.tsx:86:11 - error TS2339: Property 'calls' does not exist on type '{}'.
86 const { calls } = useSelector(getSipSlice);
~~~~~
Found 14 errors in 2 files.
Errors Files
2 src/components/CallAnsweredWidget/components/CallInfo/CallerDisplayName.tsx:2
12 src/components/CallAnsweredWidget/components/CallInfo/CallInfo.tsx:2
Failed to generate Typescript defintions. Make you have typescript installed.
assets by status 15.5 MiB [compared for emit]
assets by chunk 13.4 MiB (id hint: vendors)
assets by status 4.44 MiB [big]
asset browser-softphone.vendors-react-dom_index_js.js 2.27 MiB [compared for emit] [big] (id hint: vendors)
asset browser-softphone.vendors-nextiva_next-ui-components_dist_index_js.js 2.17 MiB [compared for emit] [big] (id hint: vendors)
+ 26 assets
+ 24 assets
assets by status 11.2 MiB [emitted]
asset main.js 5.73 MiB [emitted] [big] (name: main)
asset browser-softphone.vendors-nextiva_global-store_dist_index_js-node_modules_babel_runtime_helpers_es-0427e3.js 3.35 MiB [emitted] [big] (id hint: vendors)
asset browser-softphone.vendors-jssip_lib-es5_JsSIP_js.js 2.03 MiB [emitted] [big] (id hint: vendors)
asset browser-softphone.vendors-axios_index_js.js 142 KiB [emitted] (id hint: vendors)
orphan modules 548 KiB (javascript) 42 bytes (consume-shared) [orphan] 305 modules
runtime modules 109 KiB 30 modules
modules by path ./node_modules/ 6.91 MiB
javascript modules 6.9 MiB 1184 modules
json modules 18 KiB 8 modules
modules by path ./src/ 662 KiB 137 modules
consume-shared-module modules 1.07 KiB 26 modules
provide-module modules 1.03 KiB 25 modules
remote-module modules 18 bytes (remote) 18 bytes (share-init)
remote messaging/hooks 6 bytes (remote) 6 bytes (share-init) [built] [code generated]
remote messaging/utils 6 bytes (remote) 6 bytes (share-init) [built] [code generated]
remote messaging/messagingContextStore 6 bytes (remote) 6 bytes (share-init) [built] [code generated]
+ 13 modules
WARNING in shared module @emotion/react
No required version specified and unable to automatically determine one. Unable to find required version for "@emotion/react" in description file (/Users/dhorton/beachdog-enterprises/beachdog-networks/git/nextiva/browser-softphone-ui/node_modules/@emotion/styled/base/package.json). It need to be in dependencies, devDependencies or peerDependencies.
WARNING in shared module @emotion/react
No required version specified and unable to automatically determine one. Unable to find required version for "@emotion/react" in description file (/Users/dhorton/beachdog-enterprises/beachdog-networks/git/nextiva/browser-softphone-ui/node_modules/@mui/styled-engine/GlobalStyles/package.json). It need to be in dependencies, devDependencies or peerDependencies.
WARNING in shared module @emotion/react
No required version specified and unable to automatically determine one. Unable to find required version for "@emotion/react" in description file (/Users/dhorton/beachdog-enterprises/beachdog-networks/git/nextiva/browser-softphone-ui/node_modules/@mui/styled-engine/StyledEngineProvider/package.json). It need to be in dependencies, devDependencies or peerDependencies.
webpack 5.73.0 compiled with 3 warnings in 19571 ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment