Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
brian-hay opened this issue Sep 13, 2021 · 5 comments
Open

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

brian-hay opened this issue Sep 13, 2021 · 5 comments

Comments

@brian-hay
Copy link

When attempting to use this I get the error:

screenfull does not provide an export named 'default'

@andrelmlins
Copy link
Owner

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

@brian-hay
Copy link
Author

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",
  }
}

@andrelmlins
Copy link
Owner

andrelmlins commented Sep 17, 2021

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?

@brian-hay
Copy link
Author

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

@andrelmlins
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants