question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

flow-runtime: Cannot resolve type: Buffer

See original GitHub issue

This 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:closed
  • Created 7 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
phpnodecommented, Feb 24, 2017

building it now

1reaction
phpnodecommented, Feb 24, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found