Closed
Description
Code is here: lume/glas#111
asc v0.17.7
I believe ascMain
is set up correctly, but it doesn't seem to work.
From that example, here is the aswebglue
ascMain
field pointing to src/WebGL.ts
:
"ascMain": "src/WebGL.ts",
Here is src/WebGL.ts
which is located exactly where ascMain
points to:
Here is the file that tries to import
stuff from 'aswebglue'
but it doesn't work:
import {SHORT} from 'aswebglue'
Steps to reproduce:
git clone [email protected]:lume/ASWebGLue.git
cd ASWebGLue
git checkout assemblyscript-issue-1679
cd src/examples/CubeNodejs
npm install
npm start
That will output the following error:
❯ npm start
> @ prestart /home/trusktr/src/battlelinegames+ASWebGLue/src/examples/CubeNodejs
> npm run build
> @ build /home/trusktr/src/battlelinegames+ASWebGLue/src/examples/CubeNodejs
> asc cube.ts -b cube.wasm
ERROR TS6054: File '~lib/aswebglue/src/WebGL.ts' not found.
import {WebGLRenderingContext, WebGLShader, WebGLProgram} from 'aswebglue/src/WebGL'; // does not work
~~~~~~~~~~~~~~~~~~~~~
in cube.ts(2,64)
FAILURE 1 parse error(s)