bulma-quickview icon indicating copy to clipboard operation
bulma-quickview copied to clipboard

Standalone Bulma-Quickview not found when used with React.js

Open fireflyfolio opened this issue 4 years ago • 0 comments

Hi everyone,

With Bulma Quickview standalone, I'm trying to import bulmaQuickview in my React.js web application as follows:

import React from 'react';
import bulmaQuickview from 'bulma-quickview';

And I get this error from create-react-app server:

Failed to compile.
./src/FooComponent.js
Module not found: Can't resolve 'bulma-quickview' in '/path/to/my-app/src'

But it works if I import Bulma Quickview from the whole Bulma Extensions as follows:

import React from 'react';
import { bulmaQuickview } from 'bulma-extensions';

NB: This way of importing a standalone Bulma Extension works with Bulma Calendar.

Any idea where the issue comes from?

Thanks in advance for your help.

Best regards,

Quentin

fireflyfolio avatar Sep 11 '20 10:09 fireflyfolio