I am using ES6 with Babel in my project and I am getting an error when I declare one of my const
'use strict';
const APP = window.APP = window.APP || {};
const _ = window._;
APP.personalCard = (function () {
...
}());
the error
Uncaught TypeError: Identifier 'APP' has already been declared
and that is the whole file, I don't have that declare anywhere else in that file. But I have declared that var in the top of the other files.
What do you think it should be ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…