peritext / peritext-old

[Deprecated] a contextualization-oriented multimodal publishing engine
Other
0 stars 1 forks source link

Dynamic require of data source connector does not work when integrating in webpack #64

Open robindemourat opened 7 years ago

robindemourat commented 7 years ago

In contentsController, trying to load dynamically a connector module, like this :

const updateConnector = (params) => {
  tempConnectorName = params.connector;
  if (tempConnectorName !== connectorName) {
    connectorName = tempConnectorName;
    connector = require('./../../../connectors/' + params.connector);
  }
};

... gives the following error :

Cannot find module './filesystem'