flow-runtime: Cannot resolve type: Buffer
See original GitHub issueThis is a:
Bug Report
Which concerns:
flow-runtime
What is the current behaviour?
code like:
function foo(): Buffer {
return getData();
}
produces:
flowRuntime.ref('Buffer')
which results in the warning:
flow-runtime: Cannot resolve type: Buffer
What is the expected behaviour?
I would expect it to use Buffer.isBuffer
or instanceof Buffer
to check that the returned value is a buffer.
Which package versions are you using?
0.5.0
Issue Analytics
- State:
- Created 7 years ago
- Comments:6
Top Results From Across the Web
Cannot resolve type: Buffer · Issue #59 · gajus/flow-runtime
I think this problem is common enough that it should be handled automatically. Generating a typedefs file seems like a significant extra complication....
Read more >How is "Buffer" supposed to be used as a type with Flow?
I'm failing to use Buffer as a type, e.g: function toString(buffer: Buffer) { return buffer.toString(); } ... Could not resolve name.
Read more >We can't display component 'flowruntime:lookup', because it ...
Hi there, I'm getting the following message: We can't display component 'flowruntime:lookup', because it isn't supported in Classic runtime.
Read more >Cloud Flow Designer Guide - Salesforce Implementation guides
Automate business processes by building applications, known as flows, that collect, update, edit, and create Salesforce information.
Read more >Structured Data Manager
Check the list of common errors to find the error you are receiving. Diagnose business flow runtime problems. If you receive errors in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
building it now
hmm, on reflection i wonder if we should fall back to an instanceof check if we don’t have a definition and we can find a global with that name.