paperbits / paperbits-demo

This repository shows an example how developers can use Paperbits to build web apps with rich content authoring capabilities.
https://demo.paperbits.io
MIT License
302 stars 92 forks source link

Unable to resolve collection "workshopSections" #194

Open ceta-jltomas opened 3 years ago

ceta-jltomas commented 3 years ago

Describe the bug Just installed and built Angular example integration. Page load throws error Unable to resolve collection "workshopSections": Error: No matching bindings found for serviceIdentifier: e and renders blank page. Node version is 14.15.1.

To Reproduce Steps to reproduce the behavior:

  1. Extract, install and build Angular integration from https://github.com/paperbits/examples
  2. Open in browser index.html from dist/designer folder
  3. Check console

Expected behavior Designer rendering.

Desktop (please complete the following information):

azaslonov commented 3 years ago

Hi @ceta-jltomas, I wonder if you made any changes to build script? Just in case please ensure that name mangling is disabled:

            new TerserPlugin({
                sourceMap: false,
                terserOptions: {
                    mangle: false, <<<
                    output: {
                        comments: false,
                    }
                }
            })
ceta-jltomas commented 3 years ago

Hi @azaslonov. No, the only thing I changed was the MiniCssExtractPlugin from webpack.config.js because it seems to throw another error on build command, but I guess it isn't related. In fact I can't find anything in code about TerserPlugin.