Codesandbox-client: Parcel with Pug doesn't work

Created on 1 Oct 2018  路  10Comments  路  Source: codesandbox/codesandbox-client

馃悰 bug report

Pug includes don't work

include asdf.pug causes a readFileSync error

Link to sandbox: link

馃帓 Bundler

Most helpful comment

Hey!

As said previously we do not have a filesystem on client sandboxes so the only way you can make it work is container ones like Bogdan said:

Example: https://codesandbox.io/s/qkp0ojk8pj
A template you can save: https://codesandbox.io/s/parcel-pug-0dncl

There is not a lot we can do about the not reloading but it will be fixed when version 2 of parcel comes out.

As said this is something that we have technical constraints on.

We would love to take a look at a PR but at the moment we do not have the ability to pursue this issue

All 10 comments

Hey!

On normal sandboxes you don't really have a file system on node APIs .

Can you try this on a sse sandbox and see if it's still a problem

On a node one you will have a file system

Still has same problems and do not know what to do

Here's an example of a server sandbox, hope this helps: https://codesandbox.io/s/qkp0ojk8pj .

Not sure if this is related, but tried creating a vanilla-pug template - https://codesandbox.io/embed/silly-payne-i2let?fontsize=14 - which doesn't work.

Am I missing something trivial? or is a node container sandbox the only way to get this working?

Hey!

For now a node sansbox container is the only way to get it to work :/

Hey!

For now a node sansbox container is the only way to get it to work :/

This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made.

This issue is still there, could you investigate that please ?
Thanks !

Yes please can we get this working!!
https://codesandbox.io/s/parcel-pug-noworky-7y5iu

Hey!

As said previously we do not have a filesystem on client sandboxes so the only way you can make it work is container ones like Bogdan said:

Example: https://codesandbox.io/s/qkp0ojk8pj
A template you can save: https://codesandbox.io/s/parcel-pug-0dncl

There is not a lot we can do about the not reloading but it will be fixed when version 2 of parcel comes out.

As said this is something that we have technical constraints on.

We would love to take a look at a PR but at the moment we do not have the ability to pursue this issue

Was this page helpful?
0 / 5 - 0 ratings