Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in production build #739

Closed
1 task
arabbani opened this issue Sep 20, 2018 · 16 comments · Fixed by #807
Closed
1 task

Error in production build #739

arabbani opened this issue Sep 20, 2018 · 16 comments · Fixed by #807

Comments

@arabbani
Copy link

arabbani commented Sep 20, 2018

Issue type

I'm submitting a ... (check one with "x")

  • [ x] bug report
  • feature request

Issue description

I'm using v2.0.0-rc.10. The production build is producing the following error:
Current behavior:

[ERROR] Error: Parse error on line 1:                                                                                                                                   
[ERROR] (* 1.25) + 4px  

Expected behavior:

Steps to reproduce:

Related code:

insert short code snippets here

Other information:

npm, node, OS, Browser

npm: v6.4.1
node: v8.12.0
OS: Windows 10
Browser: Chrome

Angular, Nebular

Angular : 6.1.0
Nebular: v2.0.0-rc.10
@Tibing
Copy link
Member

Tibing commented Sep 24, 2018

Hi @arabbani, could you please provide the reproducible example?

@arabbani
Copy link
Author

Steps to reproduce:
I'm using Nebular with JHipster v5.3.4.

  1. Create a jhipster project
  2. Integrate Nebular.
  3. Build for production

Following the complete error log:

[ERROR] Error: Parse error on line 1:
[ERROR] (* 1.25) + 4px
[ERROR] Expecting 'SUB', 'LPAREN', 'NESTED_CALC', 'NUMBER', 'CSS_VAR', 
'LENGTH', 'ANGLE', 'TIME', 'FREQ', 'RES', 'EMS', 'EXS', 'CHS', 'REMS', 
'VHS', 'VWS', 'VMINS', 'VMAXS', 'PERCENTAGE', got 'MUL'
[ERROR]     at Parser.parseError (D:\Projects\arif\fb- 
quiz\node_modules\cssnano-preset-default\node_modules\reduce-css- 
calc\dist\parser.js:160:21)
[ERROR]     at Parser.parse (D:\Projects\arif\fb-quiz\node_modules\cssnano- 
preset-default\node_modules\reduce-css-calc\dist\parser.js:226:22)
[ERROR]     at D:\Projects\arif\fb-quiz\node_modules\cssnano-preset- 
default\node_modules\reduce-css-calc\dist\index.js:35:30
[ERROR]     at walk (D:\Projects\arif\fb-quiz\node_modules\postcss-value- 
parser\lib\walk.js:15:13)
[ERROR]     at ValueParser.walk (D:\Projects\arif\fb- 
quiz\node_modules\postcss-value-parser\lib\index.js:18:5)
[ERROR]     at exports.default (D:\Projects\arif\fb- 
quiz\node_modules\cssnano-preset-default\node_modules\reduce-css- 
calc\dist\index.js:29:51)
[ERROR]     at transformValue (D:\Projects\arif\fb- 
quiz\node_modules\cssnano-preset-default\node_modules\postcss- 
calc\dist\lib\transform.js:24:45)
[ERROR]     at exports.default (D:\Projects\arif\fb- 
quiz\node_modules\cssnano-preset-default\node_modules\postcss-
calc\dist\lib\transform.js:54:100)
[ERROR]     at D:\Projects\arif\fb-quiz\node_modules\cssnano-preset-default\node_modules\postcss-calc\dist\index.js:28:52
[ERROR]     at D:\Projects\arif\fb-quiz\node_modules\optimize-css-assets-webpack-plugin\node_modules\postcss\lib\container.js:144:26
[ERROR]     at Rule.each (D:\Projects\arif\fb-quiz\node_modules\optimize-css-assets-webpack-plugin\node_modules\postcss\lib\container.js:110:22)
[ERROR]     at Rule.walk (D:\Projects\arif\fb-quiz\node_modules\optimize-css-assets-webpack-plugin\node_modules\postcss\lib\container.js:143:21)
[ERROR]     at D:\Projects\arif\fb-quiz\node_modules\optimize-css-assets-webpack-plugin\node_modules\postcss\lib\container.js:146:32
[ERROR]     at Root.each (D:\Projects\arif\fb-quiz\node_modules\optimize-css-assets-webpack-plugin\node_modules\postcss\lib\container.js:110:22)
[ERROR]     at Root.walk (D:\Projects\arif\fb-quiz\node_modules\optimize-css-assets-webpack-plugin\node_modules\postcss\lib\container.js:143:21)
[ERROR]     at D:\Projects\arif\fb-quiz\node_modules\cssnano-preset-default\node_modules\postcss-calc\dist\index.js:25:9
[ERROR]     at initializePlugin (D:\Projects\arif\fb-quiz\node_modules\optimize-css-assets-webpack-plugin\node_modules\cssnano\dist\index.js:35:51)

@nnixaa
Copy link
Collaborator

nnixaa commented Sep 24, 2018

Hi @arabbani, it's really hard to tell as the Integrate Nebular. part is quite vague as this doesn't provide us with any useful info. Could you please be more specific? Can you build a basic Angular app + Nebular without the JHipster part?

@arabbani
Copy link
Author

Will try @nnixaa

@arabbani
Copy link
Author

Here is a snapshot of some of nebular's css code. Something buggy here:
gggggggggggg

@arabbani
Copy link
Author

arabbani commented Sep 24, 2018

There are many error like this in corporate.css, cosmic.css and default.css

@arabbani
Copy link
Author

arabbani commented Sep 27, 2018

@nnixaa Here is a repo https://github.com/arabbani/test-nebular/blob/master/README.md. Uses instruction are given in README.md file.

@nnixaa nnixaa added this to the 2.0.0 milestone Sep 27, 2018
@issue-sh issue-sh bot added the Backlog label Sep 27, 2018
@issue-sh issue-sh bot added Sprint and removed Backlog labels Sep 27, 2018
@issue-sh issue-sh bot assigned yggg Sep 27, 2018
@issue-sh issue-sh bot removed the Sprint label Sep 27, 2018
@arabbani
Copy link
Author

Is it working now!!

@nnixaa nnixaa reopened this Sep 28, 2018
@yggg
Copy link
Contributor

yggg commented Sep 28, 2018

Hi @arabbani. The issue should be gone now. Before the next release, you can try to download nebular sources from GitHub and link it, to verify that issue if fixed.

@arabbani
Copy link
Author

arabbani commented Sep 28, 2018

Will do @yggg . When the next version will be published

@arabbani
Copy link
Author

The error still exist.
ggggggggggggggggggggggg

@nnixaa
Copy link
Collaborator

nnixaa commented Oct 1, 2018

Hi @arabbani, have you npm linked the package?

@arabbani
Copy link
Author

arabbani commented Oct 1, 2018

Yes

@nnixaa nnixaa modified the milestones: 2.0.0, 2.0.2, 2.0.3 Oct 23, 2018
@nnixaa
Copy link
Collaborator

nnixaa commented Nov 19, 2018

Hi @arabbani, could you try on @nebular/[email protected]?

@nnixaa nnixaa added the Backlog label Nov 19, 2018
@nnixaa nnixaa modified the milestones: 2.0.3, 3.0.1 Nov 19, 2018
@arabbani
Copy link
Author

Sure. I Will try it. But give me some time. Very busy for rest of the days of this month.

@nnixaa nnixaa modified the milestones: 3.0.1, 3.1.0 Dec 5, 2018
@nnixaa
Copy link
Collaborator

nnixaa commented Dec 14, 2018

I guess we are safe to close it, @arabbani if the issue still persists, please let us know.

@nnixaa nnixaa closed this as completed Dec 14, 2018
@issue-sh issue-sh bot removed the Backlog label Dec 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants