carbon-components-svelte/src
Vegard Andreas Larsen faa4227e50
Fix "Cannot use import statement outside a module"
Using `HamburgerMenu` from a SvelteKit project would result in the following error:

```
4:01:51 PM [vite] Error when evaluating SSR module /node_modules/carbon-components-svelte/src/UIShell/SideNav/HamburgerMenu.svelte:
/home/vegard/beat/backoffice-sapper/node_modules/carbon-icons-svelte/lib/Close20/index.js:1
import Close20 from "./Close20.svelte";
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at wrapSafe (internal/modules/cjs/loader.js:1101:16)
    at Module._compile (internal/modules/cjs/loader.js:1149:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1205:10)
    at Module.load (internal/modules/cjs/loader.js:1034:32)
    at Function.Module._load (internal/modules/cjs/loader.js:923:14)
    at Module.require (internal/modules/cjs/loader.js:1074:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at nodeRequire (/home/vegard/beat/backoffice-sapper/node_modules/vite/dist/node/chunks/dep-66eb515d.js:69044:17)
    at ssrImport (/home/vegard/beat/backoffice-sapper/node_modules/vite/dist/node/chunks/dep-66eb515d.js:69002:20)
    at eval (/node_modules/carbon-components-svelte/src/UIShell/SideNav/HamburgerMenu.svelte:7:31) (x3)
```

To fix it, we need to reference the `.svelte` files for the icons.
2021-04-09 16:05:23 +02:00
..
Accordion Reactive audit (#449) 2020-12-06 03:59:30 -08:00
AspectRatio Reactive audit (#449) 2020-12-06 03:59:30 -08:00
Breadcrumb Alignment with Carbon version 10.32 (#588) 2021-04-02 13:31:53 -07:00
Button Alignment with Carbon version 10.30 (#559) 2021-03-13 14:53:37 -08:00
Checkbox chore(deps-dev): upgrade prettier-plugin-svelte (#498) 2021-01-27 15:02:02 -08:00
CodeSnippet Alignment with Carbon version 10.32 (#588) 2021-04-02 13:31:53 -07:00
ComboBox Alignment with Carbon version 10.30 (#559) 2021-03-13 14:53:37 -08:00
ComposedModal Alignment with Carbon version 10.32 (#588) 2021-04-02 13:31:53 -07:00
ContentSwitcher Alignment with Carbon version 10.32 (#588) 2021-04-02 13:31:53 -07:00
ContextMenu Alignment with Carbon version 10.32 (#588) 2021-04-02 13:31:53 -07:00
Copy chore(deps-dev): upgrade prettier-plugin-svelte (#498) 2021-01-27 15:02:02 -08:00
CopyButton Alignment with Carbon version 10.32 (#588) 2021-04-02 13:31:53 -07:00
DataTable Alignment with Carbon version 10.32 (#588) 2021-04-02 13:31:53 -07:00
DatePicker Alignment with Carbon version 10.30 (#559) 2021-03-13 14:53:37 -08:00
Dropdown Alignment with Carbon version 10.29 (#529) 2021-02-19 16:08:16 -08:00
FileUploader chore(deps-dev): upgrade prettier-plugin-svelte (#498) 2021-01-27 15:02:02 -08:00
FluidForm fix(fluid-form): forward missing events (#583) 2021-03-28 12:10:51 -07:00
Form feat(Form): forward keydown event (#581) 2021-03-27 06:06:27 -07:00
FormGroup Alignment with Carbon version 10.32 (#588) 2021-04-02 13:31:53 -07:00
FormItem chore: remove storybook 2020-10-14 16:23:44 -07:00
FormLabel refactor(types): shorten ref, id JSDocs, use CarbonIcon type, export component props 2020-11-06 11:30:46 -08:00
Grid Add padding prop to Grid component (#420) 2020-11-27 04:08:30 -08:00
Icon Alignment with Carbon version 10.30 (#559) 2021-03-13 14:53:37 -08:00
ImageLoader Alignment with Carbon version 10.30 (#559) 2021-03-13 14:53:37 -08:00
InlineLoading chore(deps-dev): upgrade prettier-plugin-svelte (#498) 2021-01-27 15:02:02 -08:00
Link Alignment with Carbon version 10.31 (#571) 2021-03-20 10:39:14 -07:00
ListBox Alignment with Carbon version 10.31 (#571) 2021-03-20 10:39:14 -07:00
ListItem feat(prettier): add svelteBracketNewLine 2020-09-24 10:50:34 -05:00
Loading chore(deps-dev): upgrade prettier-plugin-svelte (#498) 2021-01-27 15:02:02 -08:00
LocalStorage Alignment with Carbon version 10.30 (#559) 2021-03-13 14:53:37 -08:00
Modal Alignment with Carbon version 10.28 (#505) 2021-02-05 05:59:10 -08:00
MultiSelect Alignment with Carbon version 10.32 (#588) 2021-04-02 13:31:53 -07:00
Notification remove default from inline notification (#553) 2021-03-20 11:05:38 -07:00
NumberInput forward name to non-mobile variant (#568) 2021-03-28 17:35:55 -07:00
OrderedList refactor: update/fix JSDoc props 2020-11-04 06:04:25 -08:00
OverflowMenu Alignment with Carbon version 10.32 (#588) 2021-04-02 13:31:53 -07:00
Pagination Alignment with Carbon version 10.31 (#571) 2021-03-20 10:39:14 -07:00
PaginationNav chore(deps-dev): upgrade prettier-plugin-svelte (#498) 2021-01-27 15:02:02 -08:00
Popover Alignment with Carbon version 10.31 (#571) 2021-03-20 10:39:14 -07:00
ProgressIndicator Alignment with Carbon version 10.29 (#529) 2021-02-19 16:08:16 -08:00
RadioButton Alignment with Carbon version 10.30 (#559) 2021-03-13 14:53:37 -08:00
RadioButtonGroup Alignment with Carbon version 10.30 (#559) 2021-03-13 14:53:37 -08:00
Search Alignment with Carbon version 10.32 (#588) 2021-04-02 13:31:53 -07:00
Select Alignment with Carbon version 10.31 (#571) 2021-03-20 10:39:14 -07:00
SkeletonPlaceholder chore: remove storybook 2020-10-14 16:23:44 -07:00
SkeletonText refactor: update/fix JSDoc props 2020-11-04 06:04:25 -08:00
Slider Alignment with Carbon version 10.31 (#571) 2021-03-20 10:39:14 -07:00
StructuredList Alignment with Carbon version 10.31 (#571) 2021-03-20 10:39:14 -07:00
Tabs Alignment with Carbon version 10.31 (#571) 2021-03-20 10:39:14 -07:00
Tag Alignment with Carbon version 10.30 (#559) 2021-03-13 14:53:37 -08:00
TextArea chore(deps-dev): upgrade prettier-plugin-svelte (#498) 2021-01-27 15:02:02 -08:00
TextInput Alignment with Carbon version 10.30 (#559) 2021-03-13 14:53:37 -08:00
Tile Alignment with Carbon version 10.32 (#588) 2021-04-02 13:31:53 -07:00
TimePicker Alignment with Carbon version 10.32 (#588) 2021-04-02 13:31:53 -07:00
Toggle Alignment with Carbon version 10.29 (#529) 2021-02-19 16:08:16 -08:00
ToggleSmall chore(deps-dev): upgrade prettier-plugin-svelte (#498) 2021-01-27 15:02:02 -08:00
Tooltip Alignment with Carbon version 10.32 (#588) 2021-04-02 13:31:53 -07:00
TooltipDefinition Reactive audit (#449) 2020-12-06 03:59:30 -08:00
TooltipIcon Alignment with Carbon version 10.28 (#505) 2021-02-05 05:59:10 -08:00
Truncate Alignment with Carbon version 10.29 (#529) 2021-02-19 16:08:16 -08:00
UIShell Fix "Cannot use import statement outside a module" 2021-04-09 16:05:23 +02:00
UnorderedList refactor: update/fix JSDoc props 2020-11-04 06:04:25 -08:00
index.js Alignment with Carbon version 10.32 (#588) 2021-04-02 13:31:53 -07:00