have also tried pulling files from Google Drive via a link
Do you have an example link?
If it really is a link to a text file then it should work.
var onPage = require('./myTestPages').onPage;
Does var onPage = require('myTestPages').onPage; work? I understand you might want to use the local path, but for now it seems like an easy workaround?
This hasn't made its way to the WebIDE and I don't know if it ever will.
As @DrAzzy says, the WebIDE is pretty locked down, although once a sandbox is set up this should be possible (it's just not implemented yet).
I think the issue is that @Snerkle's module search code only works specifically with node.js at the moment. I think there would need to be a bit of refactoring for it to work in the Web IDE - but if that was done it would be fine.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Do you have an example link?
If it really is a link to a text file then it should work.
Does
var onPage = require('myTestPages').onPage;
work? I understand you might want to use the local path, but for now it seems like an easy workaround?As @DrAzzy says, the WebIDE is pretty locked down, although once a sandbox is set up this should be possible (it's just not implemented yet).
I think the issue is that @Snerkle's module search code only works specifically with node.js at the moment. I think there would need to be a bit of refactoring for it to work in the Web IDE - but if that was done it would be fine.