Closed kl3sk closed 6 years ago
module import is not suported
import Cookie from 'browser-cookies' => TypeError: n.replace is not a function No default export
import Cookie from 'browser-cookies'
TypeError: n.replace is not a function
import * as Cookie from 'browser-cookies' => TypeError: n.replace is not a function
import * as Cookie from 'browser-cookies'
import {set as CookieSet} from 'browser-cookies' => TypeError: n.replace is not a function
import {set as CookieSet} from 'browser-cookies'
As let Cookie = require('browser-cookie') works
let Cookie = require('browser-cookie')
Using (Encore) webpack 3.11.0
This is not an issue, i used boolean value in the .set method. This is not allowed
.set
Closing
module import is not suported
import Cookie from 'browser-cookies'
=>TypeError: n.replace is not a function
No default exportimport * as Cookie from 'browser-cookies'
=>TypeError: n.replace is not a function
import {set as CookieSet} from 'browser-cookies'
=>TypeError: n.replace is not a function
As
let Cookie = require('browser-cookie')
worksUsing (Encore) webpack 3.11.0