Skip to content

How do I use this? #11

@thekevinbrown

Description

@thekevinbrown

Hi there,

When I follow the steps in the readme, I get:

$ npm run luis

> fuse-box-electron-seed@1.0.5 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
└── events@0.0.0 8 kB (0 files)
└── fusebox-hot-reload@0.0.0 7.6 kB (0 files)
└── fusebox-websocket@0.0.0 2.9 kB (0 files)
└── module@0.0.0 331 Bytes (0 files)
└── proxyrequire@1.0.21 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions