Skip to content

@turf/boolean-valid is not part of turf and fails to build due to missing depedency #1918

@JamesLMilner

Description

@JamesLMilner

Firstly thanks for all your hard work on this fantastic library.

I wanted to point out a couple issues with boolean-valid. If boolean-valid does not seem to be be part of @turf/turf. I'm not sure if this is intentional? To reproduce do npm install @turf/turf and try and use turf.booleanValid.

Also, there appears to be a dependency on boolean-disjoint. I'm not sure if this should be specified in the depdencies here

?

To reproduce second issue:

import { Feature } from 'geojson';

import booleanValid from '@turf/boolean-valid';

export function featureIsValid(feature: Feature): boolean {
    return booleanValid(feature);
}

Without install boolean-disjoint results in:

ERROR in ../node_modules/@turf/boolean-disjoint/index.js
Module build failed: Error: ENOENT: no such file or directory, open '/home/james/Code/dentreality/customer-portal/node_modules/@turf/boolean-disjoint/index.js'
 @ ../node_modules/@turf/boolean-valid/dist/es/index.js 3:0-53 107:13-28

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