GigaGrid icon indicating copy to clipboard operation
GigaGrid copied to clipboard

Getting error while Webpack compilation.

Open ashishdhyani opened this issue 7 years ago • 2 comments

Hi @caguthrie , I am trying to use in React application. I am getting below error.

ERROR in ./~/giga-grid/styles/theme/Retro.styl Module parse failed: C:\Project\node_modules\giga-grid\styles\theme\Retro.styl Unexpected character '@' (1:0) You may need an appropriate loader to handle this file type. SyntaxError: Unexpected character '@' (1:0) at Parser.pp$4.raise (C:\Project\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15) at Parser.pp$7.getTokenFromCode (C:\Project\node_modules\webpack\node_modules\acorn\dist\acorn.js:2756:10) at Parser.pp$7.readToken (C:\Project\node_modules\webpack\node_modules\acorn\dist\acorn.js:2477:17) at Parser.pp$7.nextToken (C:\Project\node_modules\webpack\node_modules\acorn\dist\acorn.js:2468:15) at Parser.parse (C:\Project\node_modules\webpack\node_modules\acorn\dist\acorn.js:515:10) at Object.parse (C:\Project\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39) at Parser.parse (C:\Project\node_modules\webpack\lib\Parser.js:902:15) at DependenciesBlock. (C:\Project\node_modules\webpack\lib\NormalModule.js:104:16) at DependenciesBlock.onModuleBuild (C:\Project\node_modules\webpack\node_modules\webpack-core\lib\NormalModuleMixin.js:310:10) at nextLoader (C:\Project\node_modules\webpack\node_modules\webpack-core\lib\NormalModuleMixin.js:275:25) @ ./dev/js/containers/pivot-table.js 17:0-44 webpack: Failed to compile.

ashishdhyani avatar Mar 07 '17 03:03 ashishdhyani

do you have a stylus loader? https://www.npmjs.com/package/stylus-loader

erfangc avatar Mar 07 '17 04:03 erfangc

thanks erfangc. It works. Default.Styl working well.

But somehow Retro.styl doesnt seems to work properly.

ashishdhyani avatar Mar 07 '17 06:03 ashishdhyani