svelte-fullscreen icon indicating copy to clipboard operation
svelte-fullscreen copied to clipboard

Error: screenfull does not provide an export named 'default'

Open brian-hay opened this issue 3 years ago • 5 comments

When attempting to use this I get the error:

screenfull does not provide an export named 'default'

brian-hay avatar Sep 13 '21 22:09 brian-hay

Hi Bryan, could you bring more details of your project setup?

andrelmlins avatar Sep 14 '21 23:09 andrelmlins

It's a pretty basic Svelte, Vite/Rollup, TypeScript setup.

Relevant details from package.json:

{
  "name": "my-project",
  "version": "0.0.0",
  "scripts": {
    "dev": "vite",
    "build": "vite build",
    "serve": "vite preview"
  },
  "devDependencies": {
    "@sveltejs/vite-plugin-svelte": "^1.0.0-next.17",
    "autoprefixer": "^10.3.4",
    "resize-observer-polyfill": "^1.5.1",
    "svelte": "^3.42.1",
    "svelte-preprocess": "^4.7.4",
    "typescript": "^4.3.5",
    "vite": "^2.5.0"
  },
  "dependencies": {
    "normalize.css": "^8.0.1",
    "svelte-fullscreen": "^2.0.0",
  }
}

brian-hay avatar Sep 14 '21 23:09 brian-hay

I tested it with the default vite configuration and it worked

npm init vite@latest my-svelte-app --template svelte

Can you create a repository with your configuration?

andrelmlins avatar Sep 17 '21 00:09 andrelmlins

I'll see if I can replicate it in a smaller repo.

I do have more info though - it seems production (default Rollup) builds work just fine, but it's only the Vite dev HMR environment where I see the reported error in the console: image

brian-hay avatar Sep 17 '21 01:09 brian-hay

It's an error in the internal dependency, I'm trying to simulate, any news, notice here

andrelmlins avatar Sep 19 '21 02:09 andrelmlins