After following Vue's official Webpack template, I attempted the following:
data () {
photoEditorAssets: require('../assets/img/photoeditorsdk/assets'),
}
mounted () {
var editor = new PhotoEditorSDK.UI.DesktopUI({ //eslint-disable-line
container: container,
assets: {
baseUrl: this.photoEditorAssets // <-- This should be the absolute path to your `assets` directory
}
})
}
}
Unfortunately, I encountered this error message:
Module build failed: Error: ENOENT: no such file or directory, open 'E:\alex\vreditor\src\assets\img\photoeditorsdk\assets'
It seems like the code is looking for a file named assets. Any suggestions on how to properly import folders in a Vue file?
Note: Project structure can be viewed https://i.sstatic.net/kou9q.png