Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

errors cached in repl #22

Closed
boneskull opened this issue Aug 11, 2017 · 1 comment
Closed

errors cached in repl #22

boneskull opened this issue Aug 11, 2017 · 1 comment
Labels

Comments

@boneskull
Copy link

Given foo.mjs:

export const foo = 'foo';
$ node
> require('@std/esm')
@std/esm enabled
> import foo from './foo.mjs';
SyntaxError: Module 'foo.mjs' does not provide an export named 'default'
> import {foo} from './foo.mjs';
SyntaxError: Module 'foo.mjs' does not provide an export named 'default'

You have to exit and re-enter the REPL to load the named export if you mess it up the first time.

@jdalton
Copy link
Member

jdalton commented Aug 11, 2017

Yes! I ran into this prepping for my conf talk today. I'll fix this ASAP.

@jdalton jdalton added the bug label Aug 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants