ckan.js icon indicating copy to clipboard operation
ckan.js copied to clipboard

Webpack dependencies update?

Open not-a-designer opened this issue 6 years ago • 2 comments

I am getting an error when trying to add this package via NPM to my angular app

in doing some research, it looks like some of Ckan's dependencies are built in to webpack now (crypto, net, tls, etc). is there hope for an update?

Error:

[ng] ERROR in ./node_modules/ckan/node_modules/aws-sign2/index.js [ng] Module not found: Error: Can't resolve 'crypto' in 'Z:\ionic\node_modules\ckan\node_modules\aws-sign2' [ng] ERROR in ./node_modules/ckan/node_modules/http-signature/lib/verify.js [ng] Module not found: Error: Can't resolve 'crypto' in 'Z:\ionic\node_modules\ckan\node_modules\http-signature\lib' [ng] ERROR in ./node_modules/ckan/node_modules/http-signature/lib/util.js [ng] Module not found: Error: Can't resolve 'crypto' in 'Z:\ionic\node_modules\ckan\node_modules\http-signature\lib' [ng] ERROR in ./node_modules/ckan/node_modules/http-signature/lib/signer.js [ng] Module not found: Error: Can't resolve 'crypto' in 'Z:\ionic\node_modules\ckan\node_modules\http-signature\lib' [ng] ERROR in ./node_modules/ckan/node_modules/oauth-sign/index.js [ng] Module not found: Error: Can't resolve 'crypto' in 'Z:\ionic\node_modules\ckan\node_modules\oauth-sign' [ng] ERROR in ./node_modules/ckan/node_modules/request/lib/helpers.js [ng] Module not found: Error: Can't resolve 'crypto' in 'Z:\ionic\node_modules\ckan\node_modules\request\lib' [ng] ERROR in ./node_modules/cryptiles/lib/index.js [ng] Module not found: Error: Can't resolve 'crypto' in 'Z:\ionic\node_modules\cryptiles\lib' [ng] ERROR in ./node_modules/hawk/lib/crypto.js [ng] Module not found: Error: Can't resolve 'crypto' in 'Z:\ionic\node_modules\hawk\lib' [ng] ERROR in ./node_modules/sntp/lib/index.js [ng] Module not found: Error: Can't resolve 'dgram' in 'Z:\ionic\node_modules\sntp\lib' [ng] ERROR in ./node_modules/sntp/lib/index.js [ng] Module not found: Error: Can't resolve 'dns' in 'Z:\ionic\node_modules\sntp\lib' [ng] ERROR in ./node_modules/ckan/node_modules/form-data/lib/form_data.js [ng] Module not found: Error: Can't resolve 'fs' in 'Z:\ionic\node_modules\ckan\node_modules\form-data\lib' [ng] ERROR in ./node_modules/hoek/lib/index.js [ng] Module not found: Error: Can't resolve 'fs' in 'Z:\ionic\node_modules\hoek\lib' [ng] ERROR in ./node_modules/boom/lib/index.js [ng] Module not found: Error: Can't resolve 'http' in 'Z:\ionic\node_modules\boom\lib' [ng] ERROR in ./node_modules/ckan/node_modules/forever-agent/index.js [ng] Module not found: Error: Can't resolve 'http' in 'Z:\ionic\node_modules\ckan\node_modules\forever-agent' [ng] ERROR in ./node_modules/ckan/node_modules/form-data/lib/form_data.js [ng] Module not found: Error: Can't resolve 'http' in 'Z:\ionic\node_modules\ckan\node_modules\form-data\lib' [ng] ERROR in ./node_modules/ckan/node_modules/http-signature/lib/signer.js [ng] Module not found: Error: Can't resolve 'http' in 'Z:\ionic\node_modules\ckan\node_modules\http-signature\lib' [ng] ERROR in ./node_modules/ckan/node_modules/request/request.js [ng] Module not found: Error: Can't resolve 'http' in 'Z:\ionic\node_modules\ckan\node_modules\request' [ng] ERROR in ./node_modules/ckan/node_modules/tunnel-agent/index.js [ng] Module not found: Error: Can't resolve 'http' in 'Z:\ionic\node_modules\ckan\node_modules\tunnel-agent' [ng] ERROR in ./node_modules/ckan/node_modules/forever-agent/index.js [ng] Module not found: Error: Can't resolve 'https' in 'Z:\ionic\node_modules\ckan\node_modules\forever-agent' [ng] ERROR in ./node_modules/ckan/node_modules/form-data/lib/form_data.js [ng] Module not found: Error: Can't resolve 'https' in 'Z:\ionic\node_modules\ckan\node_modules\form-data\lib' [ng] ERROR in ./node_modules/ckan/node_modules/request/request.js [ng] Module not found: Error: Can't resolve 'https' in 'Z:\ionic\node_modules\ckan\node_modules\request' [ng] ERROR in ./node_modules/ckan/node_modules/tunnel-agent/index.js [ng] Module not found: Error: Can't resolve 'https' in 'Z:\ionic\node_modules\ckan\node_modules\tunnel-agent' [ng] ERROR in ./node_modules/ckan/node_modules/forever-agent/index.js [ng] Module not found: Error: Can't resolve 'net' in 'Z:\ionic\node_modules\ckan\node_modules\forever-agent' [ng] ERROR in ./node_modules/ckan/node_modules/request/request.js [ng] Module not found: Error: Can't resolve 'net' in 'Z:\ionic\node_modules\ckan\node_modules\request' [ng] ERROR in ./node_modules/ckan/node_modules/tunnel-agent/index.js [ng] Module not found: Error: Can't resolve 'net' in 'Z:\ionic\node_modules\ckan\node_modules\tunnel-agent' [ng] ERROR in ./node_modules/tough-cookie/lib/cookie.js [ng] Module not found: Error: Can't resolve 'net' in 'Z:\ionic\node_modules\tough-cookie\lib' [ng] ERROR in ./node_modules/ckan/node_modules/form-data/lib/form_data.js [ng] Module not found: Error: Can't resolve 'path' in 'Z:\ionic\node_modules\ckan\node_modules\form-data\lib' [ng] ERROR in ./node_modules/bl/node_modules/readable-stream/lib/_stream_writable.js [ng] Module not found: Error: Can't resolve 'stream' in 'Z:\ionic\node_modules\bl\node_modules\readable-stream\lib' [ng] ERROR in ./node_modules/bl/node_modules/readable-stream/lib/_stream_readable.js [ng] Module not found: Error: Can't resolve 'stream' in 'Z:\ionic\node_modules\bl\node_modules\readable-stream\lib' [ng] ERROR in ./node_modules/ckan/node_modules/assert-plus/assert.js [ng] Module not found: Error: Can't resolve 'stream' in 'Z:\ionic\node_modules\ckan\node_modules\assert-plus' [ng] ERROR in ./node_modules/ckan/node_modules/combined-stream/lib/combined_stream.js [ng] Module not found: Error: Can't resolve 'stream' in 'Z:\ionic\node_modules\ckan\node_modules\combined-stream\lib' [ng] ERROR in ./node_modules/ckan/node_modules/delayed-stream/lib/delayed_stream.js [ng] Module not found: Error: Can't resolve 'stream' in 'Z:\ionic\node_modules\ckan\node_modules\delayed-stream\lib' [ng] ERROR in ./node_modules/ckan/node_modules/request/request.js [ng] Module not found: Error: Can't resolve 'stream' in 'Z:\ionic\node_modules\ckan\node_modules\request' [ng] ERROR in ./node_modules/stringstream/stringstream.js [ng] Module not found: Error: Can't resolve 'stream' in 'Z:\ionic\node_modules\stringstream' [ng] ERROR in ./node_modules/ckan/node_modules/forever-agent/index.js [ng] Module not found: Error: Can't resolve 'tls' in 'Z:\ionic\node_modules\ckan\node_modules\forever-agent' [ng] ERROR in ./node_modules/ckan/node_modules/tunnel-agent/index.js [ng] Module not found: Error: Can't resolve 'tls' in 'Z:\ionic\node_modules\ckan\node_modules\tunnel-agent' [ng] ERROR in ./node_modules/ckan/node_modules/request/request.js [ng] Module not found: Error: Can't resolve 'zlib' in 'Z:\ionic\node_modules\ckan\node_modules\request'

package.json

"dependencies": { "@angular/common": "~7.0.2", "@angular/core": "~7.0.2", "@angular/forms": "~7.0.2", "@angular/http": "~7.0.2", "@angular/platform-browser": "~7.0.2", "@angular/platform-browser-dynamic": "~7.0.2", "@angular/router": "~7.0.2", "@ionic-native/core": "5.0.0-beta.21", "@ionic-native/splash-screen": "5.0.0-beta.21", "@ionic-native/status-bar": "5.0.0-beta.21", "@ionic/angular": "4.0.0-beta.15", "core-js": "^2.5.7", "rxjs": "6.3.3", "spotcrime": "^1.0.1", "zone.js": "^0.8.26" }, "devDependencies": { "@angular-devkit/architect": "~0.10.4", "@angular-devkit/build-angular": "~0.10.4", "@angular-devkit/core": "~7.0.4", "@angular-devkit/schematics": "~7.0.4", "@angular/cli": "~7.0.4", "@angular/compiler": "~7.0.2", "@angular/compiler-cli": "~7.0.2", "@angular/language-service": "~7.0.2", "@ionic/angular-toolkit": "^1.0.0", "@types/jasmine": "~2.8.6", "@types/jasminewd2": "~2.0.3", "@types/node": "~10.12.0", "codelyzer": "~4.5.0", "jasmine-core": "~2.99.1", "jasmine-spec-reporter": "~4.2.1", "karma": "~3.0.0", "karma-chrome-launcher": "~2.2.0", "karma-coverage-istanbul-reporter": "~2.0.0", "karma-jasmine": "~1.1.1", "karma-jasmine-html-reporter": "^0.2.2", "protractor": "~5.4.0", "ts-node": "~7.0.0", "tslint": "~5.11.0", "typescript": "~3.1.6" },

not-a-designer avatar Nov 06 '18 05:11 not-a-designer

Sure, give more detail on the changes you want and open a PR ... :smile:

rufuspollock avatar Jan 06 '19 14:01 rufuspollock

Should be resolved now in #34

loleg avatar May 01 '20 19:05 loleg