Skip to content

Issue with React TypeScript project #4

@chiragpurohit71085

Description

@chiragpurohit71085

Using latest sdk:
"socketmobile-capturejs": "^1.3.48",

WARNING in ./node_modules/socketmobile-capturejs/lib/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/home/chirag-unix/work/buysocial/codebase/storefront-web/node_modules/socketmobile-capturejs/ts/index.ts' file: Error: ENOENT: no such file or directory, open '/home/chirag-unix/work/buysocial/codebase/storefront-web/node_modules/socketmobile-capturejs/ts/index.ts'

ERROR in ./src/components/pages/socket-mobile/Scan.tsx 26:20-27
export 'Capture' (imported as 'Capture') was not found in 'socketmobile-capturejs' (module has no exports)

ERROR in ./src/components/pages/socket-mobile/Scan.tsx 55:11-40
export 'CaptureEventIds' (imported as 'CaptureEventIds') was not found in 'socketmobile-capturejs' (module has no exports)

ERROR in ./src/components/pages/socket-mobile/Scan.tsx 56:30-37
export 'Capture' (imported as 'Capture') was not found in 'socketmobile-capturejs' (module has no exports)

ERROR in ./src/components/pages/socket-mobile/Scan.tsx 97:11-40
export 'CaptureEventIds' (imported as 'CaptureEventIds') was not found in 'socketmobile-capturejs' (module has no exports)

ERROR in ./src/components/pages/socket-mobile/Scan.tsx 130:11-38
export 'CaptureEventIds' (imported as 'CaptureEventIds') was not found in 'socketmobile-capturejs' (module has no exports)

ERROR in ./src/components/pages/socket-mobile/Scan.tsx 170:18-49
export 'SktErrors' (imported as 'SktErrors') was not found in 'socketmobile-capturejs' (module has no exports)

ERROR in ./node_modules/socketmobile-capturejs/lib/index.js 1:0-32
Module not found: Error: Can't resolve './capture' in '/home/chirag-unix/work/buysocial/codebase/storefront-web/node_modules/socketmobile-capturejs/lib'
Did you mean 'capture.js'?
BREAKING CHANGE: The request './capture' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

ERROR in ./node_modules/socketmobile-capturejs/lib/index.js 2:0-37
Module not found: Error: Can't resolve './gen/errors' in '/home/chirag-unix/work/buysocial/codebase/storefront-web/node_modules/socketmobile-capturejs/lib'
Did you mean 'errors.js'?
BREAKING CHANGE: The request './gen/errors' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

ERROR in ./node_modules/socketmobile-capturejs/lib/index.js 3:0-82
Module not found: Error: Can't resolve './gen/propertyIdsTypes' in '/home/chirag-unix/work/buysocial/codebase/storefront-web/node_modules/socketmobile-capturejs/lib'
Did you mean 'propertyIdsTypes.js'?
BREAKING CHANGE: The request './gen/propertyIdsTypes' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

ERROR in ./node_modules/socketmobile-capturejs/lib/index.js 4:0-464
Module not found: Error: Can't resolve './gen/propertyValues' in '/home/chirag-unix/work/buysocial/codebase/storefront-web/node_modules/socketmobile-capturejs/lib'
Did you mean 'propertyValues.js'?
BREAKING CHANGE: The request './gen/propertyValues' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

ERROR in ./node_modules/socketmobile-capturejs/lib/index.js 5:0-48
Module not found: Error: Can't resolve './captureProperty' in '/home/chirag-unix/work/buysocial/codebase/storefront-web/node_modules/socketmobile-capturejs/lib'
Did you mean 'captureProperty.js'?
BREAKING CHANGE: The request './captureProperty' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

ERROR in ./node_modules/socketmobile-capturejs/lib/index.js 6:0-83
Module not found: Error: Can't resolve './captureEvents' in '/home/chirag-unix/work/buysocial/codebase/storefront-web/node_modules/socketmobile-capturejs/lib'
Did you mean 'captureEvents.js'?
BREAKING CHANGE: The request './captureEvents' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

ERROR in ./node_modules/socketmobile-capturejs/lib/index.js 7:0-54
Module not found: Error: Can't resolve './gen/deviceTypes' in '/home/chirag-unix/work/buysocial/codebase/storefront-web/node_modules/socketmobile-capturejs/lib'
Did you mean 'deviceTypes.js'?
BREAKING CHANGE: The request './gen/deviceTypes' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

ERROR in ./node_modules/socketmobile-capturejs/lib/index.js 8:0-105
Module not found: Error: Can't resolve './gen/dataSources' in '/home/chirag-unix/work/buysocial/codebase/storefront-web/node_modules/socketmobile-capturejs/lib'
Did you mean 'dataSources.js'?
BREAKING CHANGE: The request './gen/dataSources' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

ERROR in ./node_modules/socketmobile-capturejs/lib/index.js 9:0-61
Module not found: Error: Can't resolve './jsonRpc' in '/home/chirag-unix/work/buysocial/codebase/storefront-web/node_modules/socketmobile-capturejs/lib'
Did you mean 'jsonRpc.js'?
BREAKING CHANGE: The request './jsonRpc' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions