Answered
External module doesn't work
Hello guys I am trying to run 'clipboardy' node module in CEP panel, but it doesn't work
I have a simple setup html, index.js with CEP 10
html tags:
<script type="text/javascript" src="libs/CSInterface.js"></script>
<script type="text/javascript" src="index.js"></script>
manifest params:
manifest params:
<Parameter>--allow-file-access</Parameter>
<Parameter>--allow-file-access-from-files</Parameter>
<Parameter>--enable-nodejs</Parameter>
<Parameter>--mixed-context</Parameter>
<Parameter>--disable-web-security</Parameter>
I was trying to use both require and import but none seems to work
I was trying to use both require and import but none seems to work
const clipboardy = require('clipboardy');
//or import clipboardy from "clipboard";
alert(clipboardy.toString());
while const fontlist = require("font-list"); works fine for me
what can be the problem?
