Giter Club home page Giter Club logo

Comments (7)

ManUtopiK avatar ManUtopiK commented on May 23, 2024

nr dev in one shell, and nr docs:dev in another one doesn't work.
I have to explicitly run pnpm --filter @anu-vue/preset-theme-default build before launching the doc with nr docs:dev.
I don't understand what's wrong.

from anu.

ManUtopiK avatar ManUtopiK commented on May 23, 2024

It seems stub in main package.json doesn't pair well with docs:dev...

from anu.

jd-solanki avatar jd-solanki commented on May 23, 2024

We are also getting this error in netlify build.

I didn't get enough time to investigate it, thinking it might be a glitch because it works on my system.

Can't you run docs on your system?

from anu.

ManUtopiK avatar ManUtopiK commented on May 23, 2024

No, it doesn't work for me by default. If I git clone a fresh repository, it doesn't work either.
It also doesn't work after nr clean.

I can run docs only by doing nr dev in one shell.
I change src by dist in uno.config.ts
On a second shell, I run pnpm --filter @anu-vue/preset-theme-default build. And nr docs:dev !

from anu.

peterbud avatar peterbud commented on May 23, 2024

I experienced the same error.

However I think the right fix is this:

- import { presetThemeDefault } from '../packages/preset-theme-default/src/index'
+ import { presetThemeDefault } from '@anu-vue/preset-theme-default' 

At least after that running docs is working again.

from anu.

jd-solanki avatar jd-solanki commented on May 23, 2024

Let me check this on weekend. I experienced this error after I removed the existing node_modules dir.

from anu.

jd-solanki avatar jd-solanki commented on May 23, 2024

This is because when we compiled preset theme default's SCSS to CSS via adding rollup plugin and SCSS import in packages/preset-theme-default/src/index.ts it gave an error in dev.

In my opinion, it is complaining about CSS/SCSS syntax isn't recognized as valid JS syntax.

To test this, you can either comment that import or remove all the content from that SCSS file and your local clone will work fine.

For now, I have disabled import SCSS to continue the development however this will result in build failure in our actions + when you will build preset-theme-default it won't generate CSS.

Let's keep this issue open until we completely resolve this.

If someone has any updates on this, please let us know.

from anu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.