Problem using the web-sdk
I wanted to try the new web-SDK, but got stuck at one of the first steps 😟.
Following the instructions on https://developers.geocortex.com/docs/web/sdk-overview, I ran these commands in VSCode:
npx @vertigis/web-sdk@beta create mylib
cd mylib
npm startBut this gives an error:
ERROR in D:/Temp/web-sdk/mylib/src/index.ts 7:33
Module parse failed: Unexpected token (7:33)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file.
Line 7 of index.ts is:
export default function (registry: LibraryRegistry) {I have
- Node 14.2.0
- TypeScript 3.8.3
-
Hello Berend! Good to hear from you.
I'll reach out to you directly and see if we can get to the bottom of this.
0 -
If anyone happens to have the same problem: On my machine it was caused by having the project in a directory that was defined as a symbolic link (an NTFS junction). Node does not handle those properly.
0 -
Thank you for sharing the resolution Berend ... it is super helpful for those who encounter this thread in the future!
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare