Hi,
Having an issue with the PCF build.
I'm building a PCF to put images in a Gallery with the ability to edit the images (crop, resize, rotate and so on)
So, I have installed the darkroom (https://github.com/MattKetmo/darkroomjs) using the npm install darkroom command.
and now I have it in the node_modules folder.
I'm trying to import the darkroom in the index.ts file
import 'darkroom'; or
let Darkroom = require('darkroom');
but I got an issue in the build that Module not found: Error: Can't resolve 'darkroom'
simply what I want is to instantiate a new Darkroom object with a reference to the image element like this in the index.ts file
new Darkroom('#target');
Note: I'm already importing other libraries and it was working fine
import * as $ from 'jquery';
import * as Dropzone from 'dropzone'; "to handle image uploading"
Thanks,
Mahmoud Hassanein
Senior Solution Developer at TechLabs London