Hailwood – 07-24 Jun 2

Anyone know why using webpack with style-loader, Trying to do
import styles from './stylesheet.css';
import styles from './stylesheet.css';
I get
export 'default' (imported as 'styles') was not found in './stylesheet.css' (module has no exports)
export 'default' (imported as 'styles') was not found in './stylesheet.css' (module has no exports)
Yet import './stylesheet.css'; is fine? I have style-loader setup with
injectType: 'lazyStyleTag',
insert: function insertIntoTarget(element, options) {
const parent = options.target || document.head;
parent.appendChild(element);
},
injectType: 'lazyStyleTag',
insert: function insertIntoTarget(element, options) {
const parent = options.target || document.head;
parent.appendChild(element);
},
S
ScriptyChris686d ago
import - JavaScript | MDN
The static import statement is used to import read-only live bindings which are exported by another module.
UU
Unknown User686d ago