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

Failed to load node_modules/svelte-router-spa/src/components/navigate.svelte #95

Open
nezlicodes opened this issue Dec 20, 2020 · 1 comment

Comments

@nezlicodes
Copy link

I am having troubles with my build. I keep getting this error message:

[snowpack] ! installing dependencies...
[snowpack] Failed to load node_modules/svelte-router-spa/src/components/navigate.svelte
  Try installing rollup-plugin-svelte and adding it to Snowpack (https://www.snowpack.dev/#custom-rollup-plugins)
[snowpack] Install failed.

Here is my snowpack.config.js file



module.exports = {
  plugins: ['@snowpack/plugin-webpack', '@snowpack/plugin-svelte'],
  installOptions: {
    rollup: { plugins: [require('rollup-plugin-svelte')()] }
  },
  extends: '@snowpack/app-scripts-svelte',
  proxy: {
    '/api': 'http://localhost:3000/api',
  },
  devOptions: {
    out: 'dist/',
    port: 4242,
  },
  buildOptions: {
    baseUrl: 'dist/',
  },
  alias: {
    '@components': './src/components',
    '@state': './src/state',
    '@features': './src/features',
    '@models': './src/models',
    '@themes': './src/themes',
  },
}

Am I doing this wrong?
Thanks in advance for your help.

Versions :
"rollup-plugin-svelte": "^7.0.0".
"snowpack": "^2.18.4".
"svelte-router-spa": "^5.8.3"

@jorgegorka
Copy link
Owner

jorgegorka commented Dec 21, 2020

Hi @nezlicodes

I haven't used snowpack in any project yet so I'm not sure what the problem could be.

Could it be just an order issue and you need to have installOptins before plugins ? Just guessing.

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