DAVFoundation / dav-js

Enable integration of JavaScript, TypeScript, and Node.js code with the DAV Network
https://developers.dav.network/
MIT License
76 stars 51 forks source link

Commands "npm run build-browser-dev" fails with webpack error #121

Closed looeee closed 5 years ago

looeee commented 5 years ago

Expected Behavior

The task should proceed without errors.

Current Behavior

ERROR in multi babel-polyfill ./build/SDKFactory.js
Module not found: Error: Can't resolve './build/SDKFactory.js' in '/mnt/d/web/davFoundation/dav-js'
 @ multi babel-polyfill ./build/SDKFactory.js main[1]

Steps to Reproduce (for bugs)

  1. npm run pre-publish (runs without errors)
  2. npm run post-install (runs without errors)
  3. npm run build-browser-dev OR npm run build-browser-prod (produces the error)

Context

I'm trying to set up and learn to use the project for the first time.

Your Environment

TalAter commented 5 years ago

For now we have deprecated building dav-js for the browser.

The fact that those two npm scripts are still in package.json was an oversight. I just removed those two in https://github.com/DAVFoundation/dav-js/commit/32992931a867b3a770733cd4a196a2a1c285e234

looeee commented 5 years ago

Ok, that's clear. Thanks for the fast response 👍