Skip to content

WARNING: You should add "svelte" to the "resolve.conditionNames" array in your webpack config. #31

Open
@artfulrobot

Description

@artfulrobot

I've used this extension for years - thank you - but I came to use it again today on a new project and when doing npx mix I get this warning:

WARNING: You should add "svelte" to the "resolve.conditionNames" array in your webpack config. See https://github.com/sveltejs/svelte-loader#resolveconditionnames for more information

I have tried the following in my webpack.mix.js to no avail:

mix                                                   
  .js('src/adminux.js', 'dist')
  .webpackConfig({
    resolve: {
      alias: {  
        svelte: path.resolve('node_modules', 'svelte')
      }, 
      conditionNames: ['svelte']                      
    },
  })                                                  
  .svelte();

I tried it without the alias bit too - trying to copy bits from https://github.com/sveltejs/svelte-loader

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions