-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
Description
Describe the bug
An exception is thrown from somewhere inside code-red when compiling a component that contains an import of both a default and named export.
Logs
see compiler stacktrace below
To Reproduce
<script>
import foo, { bar } from 'baz';
</script>Expected behavior
Compiling as expected, as with 3.12.1.
Stacktraces
Cannot read property 'type' of undefined
at handle (.../node_modules/svelte/compiler.js:13825:33)
at .../node_modules/svelte/compiler.js:14392:20
at Array.map (<anonymous>)
at ImportDeclaration (.../node_modules/svelte/compiler.js:14391:41)
at handle (.../node_modules/svelte/compiler.js:13831:10)
at .../node_modules/svelte/compiler.js:14004:39
at Array.map (<anonymous>)
at handle_body (.../node_modules/svelte/compiler.js:14004:22)
at Program (.../node_modules/svelte/compiler.js:14058:11)
at handle (.../node_modules/svelte/compiler.js:13831:10)
Information about your Svelte project:
- Svelte 3.13.0-alpha.0
Severity
This would personally prevent me from updating Svelte.
Additional context
None.