Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Module not found: Error: Can't resolve 'fs' #21

@gpmcadam

Description

@gpmcadam

I've installed this package via npm (npm install --save pixi-compressed-textures) and tried to include it in my project as per the suggested steps for Browserify (I'm actually using webpack.)

I've included it as follows:

import * as PIXI from 'pixi.js';
import TEX from 'pixi-compressed-textures';

I'm getting the following error:

ERROR in ./node_modules/pixi-compressed-textures/lib/crn_decomp.js
Module not found: Error: Can't resolve 'fs' in '/path/to/node_modules/pixi-compressed-textures/lib'

Is this plugin intended to be run in the browser? Am I missing something?

Any help would be appreciated. Thanks!

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