Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gulp-less plugin error on import file #321

Open
harsheet opened this issue Nov 2, 2022 · 0 comments
Open

gulp-less plugin error on import file #321

harsheet opened this issue Nov 2, 2022 · 0 comments

Comments

@harsheet
Copy link

harsheet commented Nov 2, 2022

Hi,

I am getting below error while doing npm run build

`npm run build

[email protected] build C:\dev\beauty\src\PacDig.BeautyLove.Cms
gulp build

[00:33:39] Using gulpfile C:\dev\beauty\src\PacDig.BeautyLove.Cms\gulpfile.js
[00:33:39] Starting 'clean'...
[00:33:39] Finished 'clean' after 54 ms
[00:33:39] Starting 'build'...
[00:33:39] Starting 'copy-fonts'...
[00:33:39] Finished 'copy-fonts' after 7.73 ms
[00:33:39] Starting 'less'...
[00:33:39] Starting 'js'...
[ './public/js/index.js',
'./public/js/page.js',
'./public/js/utilities/videos/SWMPlayerBundleEntry.js',
'./public/js/Ads.js' ]
[00:33:39] Finished 'build' after 25 ms
[00:33:40] gulp-notify: [Compile Error] Error in plugin 'gulp-less'
Message:
Unrecognised input in file http://hello.myfonts.net/count/2fe576.less line no. 1
Details:
type: Parse
filename: http://hello.myfonts.net/count/2fe576.less
index: 0
line: 1
callLine: NaN
callExtract: undefined
column: 0
extract: ,<!--, The source of truth for this generic error page is https://github.com/Shopify/error-pages.
lineNumber: 1
fileName: http://hello.myfonts.net/count/2fe576.less
[00:33:40] Finished 'less' after 881 ms
[00:33:40] Starting 'autoprefixer'...
[00:33:40] Finished 'autoprefixer' after 3.21 ms
[00:33:40] Starting 'minify-css'...
[00:33:40] Finished 'minify-css' after 3.48 ms
[00:34:00] Version: webpack 4.46.0
Built at: 11/03/2022 12:34:00 AM
Asset Size Chunks Chunk Names
ads.bundle.js 68.5 KiB 0 [emitted] ads.bundle
ads.bundle.js.map 249 KiB 0 [emitted] [dev] ads.bundle
bundle.js 702 KiB 1 [emitted] [big] bundle
bundle.js.map 2.99 MiB 1 [emitted] [dev] bundle
page.bundle.js 1.76 MiB 2 [emitted] [big] page.bundle
page.bundle.js.map 10.2 MiB 2 [emitted] [dev] page.bundle
swmplayer.bundle.js 192 KiB 3 [emitted] swmplayer.bundle
swmplayer.bundle.js.map 387 KiB 3 [emitted] [dev] swmplayer.bundle
Entrypoint bundle [big] = bundle.js bundle.js.map
Entrypoint page.bundle [big] = page.bundle.js page.bundle.js.map
Entrypoint swmplayer.bundle = swmplayer.bundle.js swmplayer.bundle.js.map
Entrypoint ads.bundle = ads.bundle.js ads.bundle.js.map

WARNING in ./public/js/utilities/Tracker.js
There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers:

  • C:\dev\beauty\src\PacDig.BeautyLove.Cms\node_modules\babel-loader\lib\index.js??ref--4!C:\dev\beauty\src\PacDig.BeautyLove.Cms\public\js\utilities\Tracker.js
    Used by 1 module(s), i. e.
    C:\dev\beauty\src\PacDig.BeautyLove.Cms\node_modules\babel-loader\lib\index.js??ref--4!C:\dev\beauty\src\PacDig.BeautyLove.Cms\public\js\utilities\videos\videoEventsMixin.js
  • C:\dev\beauty\src\PacDig.BeautyLove.Cms\node_modules\babel-loader\lib\index.js??ref--4!C:\dev\beauty\src\PacDig.BeautyLove.Cms\public\js\utilities\tracker.js
    Used by 4 module(s), i. e.
    C:\dev\beauty\src\PacDig.BeautyLove.Cms\node_modules\babel-loader\lib\index.js??ref--4!C:\dev\beauty\src\PacDig.BeautyLove.Cms\public\js\gaTags.js
    @ ./public/js/utilities/Tracker.js
    @ ./public/js/utilities/videos/videoEventsMixin.js
    @ ./public/js/utilities/videos/Video.js
    @ ./public/js/utilities/videos/JWPlayerVideo.js
    @ ./public/js/utilities/videos/VideoFactory.js
    @ ./public/js/utilities/videos/VideoStore.js
    @ ./public/js/page.js
    @ multi ./public/js/page.js

WARNING in configuration
The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment.
You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/configuration/mode/

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
bundle.js (702 KiB)
page.bundle.js (1.76 MiB)

WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
bundle (702 KiB)
bundle.js
page.bundle (1.76 MiB)
page.bundle.js

WARNING in webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/
[00:34:00] Finished 'js' after 21 s
[00:34:00] Starting 'minify-js'...
[00:34:00] Finished 'minify-js' after 5.2 ms
[00:34:01] Size ad-sticky.min.js : 862 B
[00:34:02] Size ads.bundle.min.js : 70.15 kB
[00:34:02] Size swmplayer.bundle.min.js : 196.35 kB
[00:34:05] Size bundle.min.js : 718.85 kB
[00:34:16] Size page.bundle.min.js : 1.85 MB`

This is my package.json

{
"name": "project_name",
"version": "0.0.3",
"description": "Project Name",
"author": "Pacific Magazines - Frontend Development Team",
"repository": "https://github/user/project",
"dependencies": {
"@pac/swmplayer-bundle": "git+https://bxm-builduser:[email protected]/bauermediaau/swmplayer-bundle.git#1.0.8",
"aws-amplify": "^3.0.22",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-runtime": "^6.26.0",
"bootstrap": "~3.3.5",
"classnames": "^2.2.6",
"express": "~4.13.3",
"express-handlebars": "~2.0.1",
"fastclick": "~1.0.6",
"flux": "~2.1.1",
"glob": "^5.0.15",
"halogen": "~0.1.10",
"history": "~1.17.0",
"immutable": "~3.7.5",
"jquery": "~2.1.4",
"jquery-sticky": "~1.0.3",
"jquery.cookie": "~1.4.1",
"keymirror": "~0.1.1",
"numeral": "^1.5.6",
"parsleyjs": "~2.2.0-rc1",
"picturefill": "^3.0.1",
"react": "^0.14.9",
"react-bootstrap": "~0.27.3",
"react-bootstrap-validation": "~0.1.11",
"react-dom": "^0.14.9",
"react-loader": "~2.0.0",
"react-redux": "~4.0.0",
"react-router": "~1.0.0",
"react-star-rating": "^1.4.2",
"react-swipe": "^3.0.0",
"redux": "^3.7.2",
"redux-logger": "~2.0.4",
"redux-thunk": "~1.0.0",
"request": "~2.65.0",
"script-loading-toolkit": "^1.0.1",
"slick-carousel": "~1.5.8",
"sticky": "~0.8.0",
"superagent": "~1.4.0",
"swipe-js-iso": "^2.1.5",
"underscore": "~1.8.3",
"whatwg-fetch": "~0.10.1",
"yargs": "^4.6.0"
},
"devDependencies": {
"@babel/plugin-transform-runtime": "^7.2.0",
"babel": "~5.8.23",
"babel-core": "~6.13.2",
"babel-loader": "~7.1.4",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-preset-es2015": "~6.13.2",
"babel-preset-react": "~6.3.13",
"babel-preset-stage-0": "~6.3.13",
"babelify": "~6.3.0",
"browser-sync": "~2.10.0",
"browserify": "~12.0.1",
"chance": "~0.8.0",
"del": "~2.0.2",
"envify": "~3.4.0 ",
"gulp": "^3.9.1",
"gulp-autoprefixer": "~3.1.0",
"gulp-cache": "~0.4.0",
"gulp-concat": "~2.6.0",
"gulp-filesize": "~0.0.6",
"gulp-imagemin": "~2.4.0",
"gulp-less": "~3.0.4",
"gulp-minify-css": "~1.2.1",
"gulp-nodemon": "^2.0.4",
"gulp-notify": "~2.2.0",
"gulp-plumber": "^1.2.0",
"gulp-shrinkwrap": "^2.0.1",
"gulp-sourcemaps": "~1.6.0",
"gulp-uglify": "~3.0.1",
"gulp-uglify-es": "^2.0.0",
"gulp-util": "~3.0.7",
"less": "~2.5.3",
"merge-stream": "~2.0.0",
"object-assign": "~4.0.1",
"pretty-hrtime": "~1.0.1",
"reactify": "~1.1.1",
"require-dir": "~0.3.0",
"uglify-js": "~2.6.0",
"vinyl-buffer": "^1.0.1",
"vinyl-named": "^1.1.0",
"vinyl-source-stream": "^1.1.2",
"watchify": "~3.6.0",
"webpack": "^4.28.4",
"webpack-stream": "^5.0.0"
},
"scripts": {
"build": "./node_modules/.bin/gulp build"
}
}

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant