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

dev-mode does not seem to be enabled #119

Closed
runar-rkmedia opened this issue Mar 20, 2022 · 1 comment
Closed

dev-mode does not seem to be enabled #119

runar-rkmedia opened this issue Mar 20, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@runar-rkmedia
Copy link

runar-rkmedia commented Mar 20, 2022

Describe the bug
I enabled dev within compilerOptions, but it does not seem like it does get enabled.

To Reproduce
Steps to reproduce the behavior:

  1. Set up a build with esbuild, and use this plugin, enabling dev under compilerOpptuions:
  const result = await build({
  plugins: [
    pnpPlugin(),
    sveltePlugin({
      compilerOptions: {
        dev: true,
      },
      preprocess: sveltePreprocess(),
    }),
  ],
  1. Attempt to use Svelte Devtools in Chromium

Expected behavior
Expected the browser-plugin to be able to connect.

Screenshots
I get this message:

To connect to Svelte perform a hard refresh (ctrl+F5) or click here.

Not working? Did you...
Use Svelte version 3.12.0 or above?
Build with dev mode enabled?

image

Environment (please complete the following information):

  • esbuild-svelte version:
  • esbuild version:
  • Svelte preprocessors used (if any):

Additional context
I checked if the problem was related to sveltejs/svelte-devtools#69 but the problem also exists with version 96 and 97 of Chromium.

versions:
Chromium: 96.0.4664.110 Arch Linux

"svelte": "^3.46.4",
"svelte-inview": "^2.1.1",
"@tsconfig/svelte": "^3.0.0",
"esbuild-svelte": "^0.6.3",
"eslint-plugin-svelte3": "^3.4.1",
"prettier-plugin-svelte": "^2.6.0",
"svelte-preprocess": "^4.10.4",
"svelte-preprocess-sass": "^2.0.1",
@runar-rkmedia runar-rkmedia added the bug Something isn't working label Mar 20, 2022
@runar-rkmedia
Copy link
Author

This magically resolved itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant