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.

ES6 Import/Export Challenges Broken

See original GitHub issue

Identified in issue #16207 and PR #16201 The final 6 challenges in the ES6 section teach the user about using import and export. Challenges 23, 25, 27 produce: require is not defined Challenges 24, 26 produce: exports is not defined

Not sure where to start with this issue; however, we need to figure this out before launching Beta.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:15 (15 by maintainers)

github_iconTop GitHub Comments

2reactions
IsaacAbrahamsoncommented, Jan 6, 2018

@QuincyLarson, Since this is closed and merged, should it be removed from the TODO list?

1reaction
theoutlandercommented, Dec 27, 2017

So, this stuff is a bit flaky. For http://localhost:3000/en/challenges/es6/use-export-to-reuse-a-code-block, it mentions that export {foo, bar} is acceptable, but the regex is set up to only validate:

export const foo = “bar”

Anyway, we can tighten up the regex later.

I think what’s worse is that the error messages are so obfuscated!

Read more comments on GitHub >

github_iconTop Results From Across the Web

ES6 export and import problems - javascript - Stack Overflow
I'm trying to export functions in ES6 to access them from other files. But I can't figure out how. file 1: (import) import...
Read more >
Avoid these issues when using new ECMAScript modules in ...
You will get an error: Jest “SyntaxError: Unexpected token export”. Always remember to set the type: "module" if you're publishing a package ...
Read more >
ES6 Import & Export > Webpack Encore - SymfonyCasts
Imagine you're using a huge external library - like lodash - which is really just a collection of independent functions. If that library...
Read more >
Node Modules at War: Why CommonJS and ES ... - Code Red
Under dynamic modules, the importer would define the export names in the import . The ESM loader would initially just trust that dynamic...
Read more >
JavaScript modules - MDN Web Docs
Report problems with this compatibility data on GitHub ... The first thing you do to get access to module features is export them....
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