rxjs-in-action icon indicating copy to clipboard operation
rxjs-in-action copied to clipboard

I getting this errors in the build process

Open romelgomez opened this issue 6 years ago • 6 comments

After downloading the git repo and run npm install && npm install -g gulp && gulp

'rxjs' is imported by app/js/utils/cookies.js, but could not be resolved – treating it as an external dependency
'rxjs' is imported by app/js/editors.js, but could not be resolved – treating it as an external dependency
'jquery' is imported by app/js/editors.js, but could not be resolved – treating it as an external dependency
'codemirror' is imported by app/js/editors.js, but could not be resolved – treating it as an external dependency
'jquery' is imported by app/js/runtime.js, but could not be resolved – treating it as an external dependency

The next error, it fixed after update the gulpfile

The sourceMap option has been renamed to "sourcemap" (lowercase "m") in Rollup. The old form is now deprecated in rollup-stream. options.entry is deprecated, use options.input

  return rollup({
    input: './app/js/runtime.js',
    sourcemap: true,

romelgomez avatar Apr 03 '18 22:04 romelgomez

Thanks for the bug report @romelgomez! I'll take a look and push a fix.

paulpdaniels avatar Apr 04 '18 07:04 paulpdaniels

Any chance of this getting fixed. Thanks

khtan avatar Nov 14 '18 04:11 khtan

After downloading the git repo and run npm install && npm install -g gulp && gulp

'rxjs' is imported by app/js/utils/cookies.js, but could not be resolved – treating it as an external dependency
'rxjs' is imported by app/js/editors.js, but could not be resolved – treating it as an external dependency
'jquery' is imported by app/js/editors.js, but could not be resolved – treating it as an external dependency
'codemirror' is imported by app/js/editors.js, but could not be resolved – treating it as an external dependency
'jquery' is imported by app/js/runtime.js, but could not be resolved – treating it as an external dependency

The next error, it fixed after update the gulpfile

The sourceMap option has been renamed to "sourcemap" (lowercase "m") in Rollup. The old form is now deprecated in rollup-stream. options.entry is deprecated, use options.input

  return rollup({
    input: './app/js/runtime.js',
    sourcemap: true,

I ran npm audit fix and thereafter gulp, still get the sourceMap and deprecated warnings but I'm able to open up :8080 and see the content.

Sacquer avatar Jan 22 '19 15:01 Sacquer

After cloning this repo and npm install && npm install -g gulp && gulp I get a reference error: primordials is not defined ` at fs.js:27:26 at req_ (/home/abhishek/rxjs-in-action/node_modules/natives/index.js:137:5) at Object.req [as require] (/home/abhishek/rxjs-in-action/node_modules/natives/index.js:54:10) at Object. (/home/abhishek/rxjs-in-action/node_modules/graceful-fs/fs.js:1:37) at Module._compile (internal/modules/cjs/loader.js:955:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10) at Module.load (internal/modules/cjs/loader.js:811:32) at Function.Module._load (internal/modules/cjs/loader.js:723:14) at Module.require (internal/modules/cjs/loader.js: #848:19) at require (internal/modules/cjs/helpers.js:74:18)

when I again try to run it then show the same error. How can I fix it?

abhishe3571 avatar Aug 28 '20 23:08 abhishe3571

@abhishe3571 @paulpdaniels

with this work around its works properly:

yarn install && yarn global add gulp && gulp

Screenshot from 2020-08-28 18-44-57

romelgomez avatar Aug 28 '20 23:08 romelgomez

I tried the yarn workaround and I still got the ReferenceError: primordials is not defined.

What fixed it for me was to also switch from node 12 to node 10.

tehciolo avatar Jun 17 '21 07:06 tehciolo