Skip to content

insignificant-slice error, but slice is imported in multiple layers #223

@CuminatoConnectWise

Description

@CuminatoConnectWise

Hello, hope you're doing well.
When running steiger in my repository as following:

npx steiger ./src 

I get the following output.

┌ entities/auth ✘ This slice has no references. Consider removing it. │ └ insignificant-slice

But I'm importing this file in pages and app layers

import { something } from 'entities/auth'; 

Some of my config files

// babel.config.js export default function (api) { api.cache(true); return { presets: [ [ '@babel/preset-env', { targets: { node: 'current' }, }, ], [ '@babel/preset-react', { runtime: 'automatic', }, ], ], plugins: [ [ 'module-resolver', { root: ['./src'], alias: { entities: './src/entities', }, }, ], ], env: { test: { plugins: ['@babel/plugin-transform-modules-commonjs'], }, }, }; }
// jsconfig.json { "compilerOptions": { "baseUrl": "./src", "paths": { "entities/*": [ "entities/*" ], } }, "include": [ "src" ] }

I'm running windows 11 with wsl (not sure if this is relevant)
and the following packages version

steiger 0.5.11 @feature-sliced/steiger-plugin 0.5.7 

The issue #122 seems to be related, tried the version 5.3 as described there, but had no success.
Really appreciate any help on this. Thanks you!

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