question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dev tool working but not build

See original GitHub issue

🐛 bug report

parcel dev works fine in my application, but parcel build gives me the following error :

🚨  /home/alexis/Projects/VisualQueries/VisualQueries/node_modules/jquery-ui-dist/jquery-ui.theme.css:undefined:undefined: plugin is not a function
    at LazyResult.run (/usr/local/lib/node_modules/parcel-bundler/node_modules/postcss/lib/lazy-result.js:288:14)
    at LazyResult.asyncTick (/usr/local/lib/node_modules/parcel-bundler/node_modules/postcss/lib/lazy-result.js:212:26)
    at /usr/local/lib/node_modules/parcel-bundler/node_modules/postcss/lib/lazy-result.js:254:14
    at new Promise (<anonymous>)
    at LazyResult.async (/usr/local/lib/node_modules/parcel-bundler/node_modules/postcss/lib/lazy-result.js:250:23)
    at LazyResult.then (/usr/local/lib/node_modules/parcel-bundler/node_modules/postcss/lib/lazy-result.js:131:17)
npm ERR! code 1
npm ERR! path /home/alexis/Projects/VisualQueries/VisualQueries
npm ERR! command failed
npm ERR! command sh -c parcel build src/index.html

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/alexis/.npm/_logs/2021-06-08T09_37_51_646Z-debug.log

I think it has something to do with the minification process of the css. If I build with “parcel build src/index.html --no-minify” it works.

🎛 Configuration (.babelrc, package.json, cli command)

My package.json file :

{
  "name": "visualqueries",
  "version": "1.0.0",
  "description": "Social network dynamic query system",
  "main": "src/index.html",
  "scripts": {
    "test": "cypress open",
    "dev": "parcel src/index.html",
    "build": "parcel build src/index.html",
    "update": "npm update git+ssh://git@gitlab.inria.fr/fekete/cypher-compiler-js.git; npm i git+ssh://git@gitlab.inria.fr/fekete/cypher-compiler-js.git"
  },
  "author": "Alexis Pister",
  "license": "ISC",
  "dependencies": {
    "canvas-lasso": "^1.0.0",
    "codemirror": "^5.61.0",
    "cypher-compiler-js": "git+ssh://git@gitlab.inria.fr/fekete/cypher-compiler-js.git",
    "d3": "^6.7.0",
    "d3-drag": "^2.0.0",
    "d3-selection": "^2.0.0",
    "datatables.net": "^1.10.24",
    "datatables.net-buttons": "^1.7.0",
    "datatables.net-buttons-dt": "^1.7.0",
    "datatables.net-buttons-se": "^1.7.0",
    "datatables.net-dt": "^1.10.24",
    "datatables.net-jqui": "^1.10.24",
    "datatables.net-se": "^1.10.24",
    "es6-promise": "^4.2.8",
    "flatted": "^3.1.1",
    "fomantic-ui": "^2.8.7",
    "jquery": "^3.6.0",
    "jquery-ui": "^1.12.1",
    "jquery-ui-bundle": "^1.12.1-migrate",
    "jquery-ui-dist": "^1.12.1",
    "jszip": "^3.6.0",
    "lasso-canvas-image": "^1.4.2",
    "leaflet": "^1.7.1",
    "pdfmake": "^0.1.71",
    "react": "^17.0.2",
    "react-dom": "^17.0.2",
    "regenerator-runtime": "^0.13.7",
    "sortablejs": "^1.13.0",
    "stream": "^0.0.2",
    "update": "^0.7.4",
    "webcola": "^3.4.0"
  },
  "devDependencies": {
    "@visdesignlab/trrack": "^2.0.0-alpha.10",
    "@visdesignlab/trrack-vis": "^2.0.0-alpha.12",
    "chance": "^1.1.7"
  }
}

🌍 Your Environment

Software Version(s)
Parcel 1.12.5
Node 14.15.4
npm/Yarn 7.5.2
Operating System Ubuntu 20.04

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:17 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mischniccommented, Jun 9, 2021

Sure, I uploaded the code here : https://github.com/AlexisPister/Vgq/tree/main/VisualQueries/VisualQueries

Running yarn build in that folder doesn’t work because the src folder is missing.

I get another error with --no-source-maps

You’d need to specify both --no-source-maps and --no-scope-hoist

0reactions
github-actions[bot]commented, Apr 13, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chrome developer tools sources not showing source files
Opened the network tab in developer tools and refresh. if not works then. open chrome dev tools -> settings -> Restore default and...
Read more >
Chrome DevTools
Chrome DevTools is a set of web developer tools built directly into the Google Chrome browser. ... Get started with Google Chrome's built-in...
Read more >
What are browser developer tools? - MDN Web Docs - Mozilla
Every modern web browser includes a powerful suite of developer tools. These tools do a range of things, from inspecting currently-loaded ...
Read more >
7 devtool Quick Reference - the Yocto Project Documentation
devtool uses a “Workspace” layer in which to accomplish builds. This layer is not specific to any single devtool command but is rather...
Read more >
How to Hide your React Source Code from Chrome Dev Tools ...
But you definitely don't want everyone to see your entire source code If it's a private repository or you're working on a client...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found