0

so i export my project from codesandbox (it works there) to visual code and now im having problems with this ...´

Module parse failed: Unexpected character '@' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are
configured to process this file. See https://webpack.js.org/concepts#loaders
> @charset "UTF-8";
| .vjs-modal-dialog .vjs-modal-dialog-content, .video-js .vjs-modal-dialog, .vjs-button > .vjs-icon-placeholder:before, .video-js .vjs-big-play-button .vjs-icon-placeholder:before {
|   position: absolute;
 @ ./src/Components/Work/videojs.js 3:0-36
 @ ./src/Components/Work/Video.js
 @ ./src/Components/Work/index.js
´´´

I already install from npm all the dependencies that i have in codesandbox.
glad if anyone can answer this 

1 Answers1

0

The path is wrong:

import "video.js/dist/video-js.css";

You need to give the full path:

import "/node-modules/video.js/dist/video-js.css";
Vincenzo Ninni
  • 185
  • 2
  • 12
  • now i have this error ´ Module build failed (from ./node_modules/babel-loader/lib/index.js): Error: .presets[0][1] must be an object, false, or undefined ` and my .babelrc is `{ "presets": [ [ "@babel/preset-env", "@babel/preset-react" ] ], "plugins": [ "@babel/proposal-class-properties", "@babel/transform-runtime", [ "import", { "libraryName": "@material-ui/icons", "libraryDirectory": "", "camel2DashComponentName": false } ] ] } ` – Miguel Rodrigues Jan 27 '20 at 14:52