cerebroapp / cerebro-basic-apps

📦 Cerebro plugin for applications search and launch on windows and linux
MIT License
11 stars 11 forks source link

Cerebro dependencies in package.json need updating #8

Closed lawgsy closed 2 years ago

lawgsy commented 6 years ago

Building currently only succeeds after manually updating cerebro-scripts dev dependency.

KELiON commented 6 years ago

@lawgsy can you attach error log? I just tried to pull latest version, reinstall node_modules and it works

lawgsy commented 6 years ago

yarn results in:

   C:\[...]\cerebro-basic-apps\dist directory doesn't exist. Creating
    Bundling all files...
(node:5708) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
Hash: 423315d49260e1802864
Version: webpack 2.5.1
Time: 1971ms
   Asset    Size  Chunks                    Chunk Names
index.js  598 kB       0  [emitted]  [big]  index
  [12] ./~/cerebro-tools/dist/index.js 25.6 kB {0} [built]
  [13] ./~/react/react.js 56 bytes {0} [built]
  [23] ./~/lodash/uniq.js 688 bytes {0} [built]
  [43] ./src/platform.js 207 bytes {0} [built]
  [47] ./~/glob/glob.js 19.4 kB {0} [built]
  [54] ./~/lodash/_baseUniq.js 1.91 kB {0} [built]
  [78] ./src/Preview/index.js 671 bytes {0} [built]
  [79] ./src/initializeAsync.js 1.4 kB {0} [built]
  [80] ./~/lodash/uniqBy.js 1.01 kB {0} [built]
  [86] ./src/index.js 1.49 kB {0} [built]
  [88] ./src/mac.js 1 kB {0} [built]
  [89] ./src/windows.js 1.43 kB {0} [built]
  [99] ./~/cerebro-ui/index.js 382 bytes {0} [built]
 [133] ./~/lodash/_baseIteratee.js 895 bytes {0} [built]
 [221] ./src/Preview/styles.css 944 bytes {0} [built]
    + 210 hidden modules

ERROR in ./~/cerebro-ui/KeyboardNav/index.js
Module parse failed: C:\[...]\cerebro-basic-apps\node_modules\cerebro-ui\KeyboardNav\index.js Unexpected token (79:6)
You may need an appropriate loader to handle this file type.
|   render() {
|     return (
|       <div onKeyDown={this.onKeyDown.bind(this)} ref={(el) => { this.wrapper = el }}>
|         {this.props.children}
|       </div>
 @ ./~/cerebro-ui/index.js 2:0-55
 @ ./src/Preview/index.js
 @ ./src/index.js

ERROR in ./~/cerebro-ui/Loading/index.js
Module parse failed: C:\[...]\cerebro-basic-apps\node_modules\cerebro-ui\Loading\index.js Unexpected token (5:2)
You may need an appropriate loader to handle this file type.
|
| export default () => (
|   <div className={styles.spinner}>
|     <div className={styles.bounce1}></div>
|     <div className={styles.bounce2}></div>
 @ ./~/cerebro-ui/index.js 1:0-47
 @ ./src/Preview/index.js
 @ ./src/index.js

ERROR in ./~/cerebro-ui/FileIcon/index.js
Module parse failed: C:\[...]\cerebro-basic-apps\node_modules\cerebro-ui\FileIcon\index.js Unexpected token (15:2)
You may need an appropriate loader to handle this file type.
|  */
| const FileIcon = ({ className, path }) => (
|   <Preload promise={getFileIcon(path)} key={path}>
|     {(src) => <img src={src} alt="" className={className} />}
|   </Preload>
 @ ./~/cerebro-ui/index.js 6:0-48
 @ ./src/Preview/index.js
 @ ./src/index.js

ERROR in ./~/cerebro-ui/KeyboardNavItem/index.js
Module parse failed: C:\[...]\cerebro-basic-apps\node_modules\cerebro-ui\KeyboardNavItem\index.js Unexpected token (4:36)
You may need an appropriate loader to handle this file type.
| import styles from './styles.css'
|
| const KeyboardNavItem = ({ tagName, ...props }) => {
|   let className = styles.item
|   className += props.className ? ` ${props.className}` : ''
 @ ./~/cerebro-ui/index.js 3:0-63
 @ ./src/Preview/index.js
 @ ./src/index.js

ERROR in ./~/cerebro-ui/SmartIcon/index.js
Module parse failed: C:\[...]\cerebro-basic-apps\node_modules\cerebro-ui\SmartIcon\index.js Unexpected token (25:4)
You may need an appropriate loader to handle this file type.
| const SmartIcon = ({ className, path }) => (
|   isImage(path) ?
|     <img src={path} alt={path} className={className} /> :
|     <FileIcon path={path} className={className} />
| )
 @ ./~/cerebro-ui/index.js 7:0-50
 @ ./src/Preview/index.js
 @ ./src/index.js
    Minify build...
C:\[...]\cerebro-basic-apps\dist\index.js -> C:\[...]\cerebro-basic-apps\dist\index.js
    Done! You plugin is ready to publish
Done in 119.55s.

After the following it works just fine (no errors whatsoever): yarn remove cerebro-scripts && yarn add cerebro-scripts -D

So, it appears the older version of cerebro-scripts doesn't have the right babel loader or something, plus when I was trying to figure out was wrong (I managed to get past the above errors), there was a typo (appname instead of appName if I recall correct) in the old cerebro-scripts that caused another error.