luis
luis copied to clipboard
How do I use this?
Hi there,
When I follow the steps in the readme, I get:
$ npm run luis
> [email protected] luis <directory>
> luis
Custom config not found. Launching standard configuration.
No root and entry file specified. Estimating 'src' as project root and 'luis.ts' as the entry files.
If you want to use a different entry file, please run process as 'node luis root path/to/luis.ts
<directory>/node_modules/luis/luis.fuse.js
--- FuseBox 3.7.1 ---
--------------------------
Bundle "luis-vendor"
└── (0 files, 53 Bytes) default
size: 53 Bytes in 36ms
--------------------------
Bundle "luis-client"
└── (0 files, 91 Bytes) default
└── [email protected] 8 kB (0 files)
└── [email protected] 7.6 kB (0 files)
└── [email protected] 2.9 kB (0 files)
└── [email protected] 331 Bytes (0 files)
└── [email protected] 4.1 kB (0 files)
size: 22.9 kB in 27ms
→
-----------------------------------------------------------------
Development server running http://localhost:9001 @ 3.7.1
-----------------------------------------------------------------
19:29:25: HMR is enabled
19:29:37: Client connected
Then when I look at that URL I get a blank page with this in the console:
default/luis.js does not provide a module
s @ luis-vendor.js:7
How can I debug this to get Luis running?
Alternatively I've tried to get it working with a standalone react component, but get Typescript errors around setupTestBridge
, and that also fails at runtime:
Uncaught TypeError: luis_1.setupTestBridge is not a function
at Object.<anonymous> (renderer.js:52)
at c (renderer.js:822)
at b.require (renderer.js:822)
at Object.<anonymous> (renderer.js:43)
at c (renderer.js:822)
at b.require (renderer.js:822)
at Object.<anonymous> (renderer.js:23)
at c (renderer.js:822)
at b.require (renderer.js:822)
at Object.<anonymous> (renderer.js:11)
How can I get one of these approaches working?