I am just trying to get into paper.js. Code works fine when they're inlined. But when I move them to an external file and src it there, errors starts to pop up :( Can anyone figure out what I did wrong? Error screenshot is attached
<script type="text/paperscript" src="test.js" canvas="myCanvas"></script>
<canvas id="myCanvas" resize="true"></canvas>
From your screenshot, it is CORS ERROR.
You can fix CORS ERROR to test locally with https://www.thepolyglotdeveloper.com/2014/08/bypass-cors-errors-testing-apis-locally/