Closed oussamaABID closed 6 years ago
bypasses with url in index.html (webpack2 compatibility) :
<script type='text/javascript' src='https://datasync.orange.com/libjs/latest/webcom.js'></script>
Hi oussama,
The webcom npm "package" contains 2 libraries : webapp + node.js. By default node.js one seems to be imported and it cannot work in the browser.
There is 2 solutions:
In your webpack configuration file you can add:
module.exports = {
...
resolve: {
alias: {
webcom: 'webcom/webcom.js'
}
}
...
}
Other solution:
import 'webcom/webcom.js';
how to config webcom in webpack2 ?
my import :
import webcom from 'webcom';
package:
error :
Uncaught Error: process.binding is not supported