question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Delimiter changes from % to ? if not set.

See original GitHub issue

Hello,

I developed a private npm package where i used ejs to render some emails. When i am developing the package i never had issues while running rendering tests, demoing etc. In this case when i var ejs = require('ejs') the exported object comes without a defined delimiter.

As soon as i published my packaged and started using it inside a docker container, which runs an older version of node (i think its 5.X.X), the delimiter is set to ? after require.

This rendered all my templates useless and i took a while to discover. I easily solved my problem by setting the delimiter but it thought my report could still be useful. Is this a known problem? Do you want more details in order to track this problem down? I think this should be investigated.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
User4martincommented, Aug 5, 2017

Well yes. And No.

Some other package in your node_modules (or in your own code, or any code you use) has set it to “?”

If you do anywhere

var foo = require("ejs");
foo.delimiter = '?';

and then later require ejs somewhere else, then the delimiter is set already.

0reactions
bertolo1988commented, Aug 6, 2017

Oh my god, you are absolutely right.

In my defense… the project i am working on is huge and i don’t know most of it. I am completely surprised that it was already being used and defined.

Thanks alot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Formula errors in Excel when list separator is not set correctly
From the File menu, select Options. Select Advanced. In the 'Editing options' group determine if 'Use system separators' is unselected. If it  ......
Read more >
How to change Excel CSV delimiter to comma or semicolon
The tutorial shows how to change CSV separator when importing or exporting data to/from Excel, so you can save your file in the ......
Read more >
How to change the field separator (delimiter) in Excel when ...
Open the dialog box for changing Regional and Language settings. In the dialog box, look for the List separator setting. (Location may vary...
Read more >
How to change CSV delimiter in Excel - SpreadsheetWeb
In this guide, we're going to show you how to change CSV delimiter in Excel.
Read more >
How to open CSV files with the correct delimiter/separator
Here are two ways to open files without needing to change your Excel settings: ... Select Delimited, then make sure the File Origin...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found