module error not found on react

manuelBetancurt

I'm following this tutorial for RxJS but When I get to the part of setting up env, I get an error message when doing

$yarn run start

import * as Rx from "rxjs/Observable";
console.log(Rx);

if I leave the log without the "Rx", it shows fine. But if I use the log... I get this error:

ERROR in ./node_modules/rxjs/Observable.js Module not found: Error: Can't resolve 'rxjs-compat/Observable' in '/Users/manuel/Documents/testeos/JS/rxjs/node_modules/rxjs' @ ./node_modules/rxjs/Observable.js 6:9-42 @ ./src/code.ts @ multi (webpack)-dev-server/client?http://localhost:8080 ./src/code.ts

m1ch4ls

I ran into the same issue today

Install yarn add rxjs-compat / npm install rxjs-compat

or

Do don't use deprecated imports: rxjs/Rx, rxjs/Observable, etc... (see new import paths)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

react-dropdown-input Module not found: Error

Why module not found error occur in react?

"module not found : Error: Cannot resolve module 'react/lib/ReactMount' "

React: Module not found: Error: Can't resolve 'react/lib/update'

`react-map-gl` ERROR Module not found error [MAPBOX]

Firebase-Admin, importing it to react application throws Module not found error

Module not found: Error: Can't resolve 'crypto' in react browser project

Module not found: Error: Can't resolve 'http' in React

react-native module not found error even though the file is present

Module not found: Error: Can't resolve 'react-bootstrap-validation'

Module not found: Error: Can't resolve 'react-select' with typescript

Module not found: Error: Can't resolve 'cypress-react-selector'

React.JS App MODULE_NOT_FOUND error on 'npm start'

`react-map-gl` EROOR Module not found error [MAPBOX]

Module not found: Error: Can't resolve 'fs' react js

Module not found: Error: Can't resolve './App' in React

'MODULE_NOT_FOUND' Error on running npm run build in react

Module not found error when referencing the path for an in-directory image in React

React Module not found: Error: Can't resolve- import paths

Module not found in React

React - jquery module not found

React JS module not found

Module not found by React

React Module not found:

Gulp error (module not found)

EZGrid React DataGrid showing error "Module not found: Error: Can't resolve 'react/jsx-runtime'"?

Module not found: Error: Cannot resolve module 'react' when I use webpack

Module not found: Error: Cannot resolve module 'react-addons-test-utils'

React Native With Loadash Module Not Found