You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried consuming this package with webpack (version 4.46.0) in a front-end app, getting 2 different type of errors depending on how I try to import it.
If imported via import Web2Driver from 'web2driver';
Getting an error from webpack:
warning in /*******/node_modules/web2driver/dist/main.js
Critical dependency: the request of a dependency is an expression
If imported via import Web2Driver from 'web2driver/index';
Getting an error:
WARNING in /*****/node_modules/tsconfig-paths/lib/match-path-sync.js 37:58-76
require.extensions is not supported by webpack. Use a loader instead.
WARNING in /*****/node_modules/tsconfig-paths/lib/match-path-async.js 25:58-76
require.extensions is not supported by webpack. Use a loader instead.
ERROR in /*****/node_modules/web2driver/node_modules/cacheable-lookup/source/index.js
Module not found: Error: Can't resolve 'dns' in '/*****/node_modules/web2driver/node_modules/cacheable-lookup/source'
ERROR in /*****/node_modules/web2driver/node_modules/http2-wrapper/source/index.js
Module not found: Error: Can't resolve 'http2' in '/*****/node_modules/web2driver/node_modules/http2-wrapper/source'
ERROR in /*****/node_modules/web2driver/node_modules/http2-wrapper/source/agent.js
Module not found: Error: Can't resolve 'http2' in '/*****/node_modules/web2driver/node_modules/http2-wrapper/source'
ERROR in /*****/node_modules/web2driver/node_modules/http2-wrapper/source/client-request.js
Module not found: Error: Can't resolve 'http2' in '/*****/node_modules/web2driver/node_modules/http2-wrapper/source'
ERROR in /*****/node_modules/tsconfig-paths/lib/register.js
Module not found: Error: Can't resolve 'module' in '/*****/node_modules/tsconfig-paths/lib'
ERROR in /*****/node_modules/web2driver/node_modules/got/dist/source/core/utils/timed-out.js
Module not found: Error: Can't resolve 'net' in '/*****/node_modules/web2driver/node_modules/got/dist/source/core/utils'
The text was updated successfully, but these errors were encountered:
I tried consuming this package with webpack (version 4.46.0) in a front-end app, getting 2 different type of errors depending on how I try to import it.
If imported via
import Web2Driver from 'web2driver';
Getting an error from webpack:
If imported via
import Web2Driver from 'web2driver/index';
Getting an error:
The text was updated successfully, but these errors were encountered: