Skip to content

Vite support #91

Closed
Closed
@WardPearce

Description

@WardPearce

When trying to use this lib with vite, following errors occur

[vite] Internal server error: Failed to resolve import "$app/env" from "node_modules/svelte-file-dropzone/src/components/Dropzone.svelte". Does the file exist?
  Plugin: vite:import-analysis
  File: /home/ward/Documents/Git/paaster/paaster-frontend/node_modules/svelte-file-dropzone/src/components/Dropzone.svelte
  26 |  } from "svelte/internal";
  27 |  
  28 |  import { browser } from "$app/env";
     |                           ^
  29 |  import { fromEvent } from "file-selector";

Discussion with Vite land team member

chat

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions