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.

Import errors in node

See original GitHub issue

TypeError: prelude_1.prop is not a function

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
marcusradellcommented, Oct 27, 2017

Using @typed/maybe worked out well! (I’m using tsc without webpack.)

Thanks for the help, I just did my first Maybe and ap , and it feels awesome 🎉

0reactions
Frikkicommented, Jan 9, 2018

I am much in favor of explicit imports. A convenient shortcut using @typed/prelude is preferable to re-exports.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Import not working on Node.js version 11.8.0
Have you been able to use the import keyboard elsewhere in your code? The issue here may be that you aren't transpiling your...
Read more >
Use ES Modules in Node.js & Fix "cannot use import ...
This article explains ECMAScript modules in Node.js, and how to use import and export modules in Node.js. Fix cannot use import statement outside...
Read more >
Errors | Node.js v19.3.0 Documentation
All JavaScript and system errors raised by Node.js inherit from, ... An import assertion has failed, preventing the specified module to be imported....
Read more >
How to use an ES6 import in Node.js?
The import statement is used to import modules that are exported by some other module. A module is a file that contains a...
Read more >
SyntaxError: Unexpected token import in Node.js
The "SyntaxError: Unexpected token import" occurs when we use the ES6 import syntax in a version of Node that doesn't support it. To...
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