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
Unexpected Token #673
Comments
@adcommodore you could try changing the line to |
I am getting a similar errorcode. Can someone advise SyntaxError: Unexpected token '{' |
@larryj52 your |
SyntaxError: Unexpected token '{' |
@larryj52 can you paste the |
The whole thing? |
@larryj52 just the bits you've changed |
// If you have selected Solana then the collection starts from 0 automatically const extraMetadata = {external_url: "http://soulbrono1.xyz" // General metadata for Ethereum const extraMetadata = {external_url: "http://soulbrono1.xyz" |
These are the problems that are being highlighted: under the problems tab: [{ |
@larryj52 I think you're missing a { name: "Hats" },
];
^ Changing it to { name: "Hats" },
]}]; Should fix it. |
I'll try it. |
It didn't work |
@larryj52 What error is it giving you now? |
Same error SyntaxError: Unexpected token '{' |
@larryj52 what part is the error coming from? |
/Users/raad_1/Downloads/hashlips_art_engine-1.1.1_update/src/config.js:38 i think |
This is what the code looks like now with yyour suggestion. // If you have selected Solana then the collection starts from 0 automatically const shuffleLayerConfigurations = false; |
@larryj52 there might be a missing comma on the line before, if not, can you send the line above this. |
This totally worked. Thank you! |
Sent |
Where should this go? |
@adcommodore where did you put this line – initGifEncoder() { ? |
@larryj52 that's about the original issue. Can you send me the full error and the full |
so I'm not sure I understand your situation fully but this is what I encountered: first I had to change this in the main.js const layersSetup = (layersOrder) => { to this: const layersSetup = (layersOrder) => { and then I encounter the issue I had above which was coded like this in the hashlipsgiffer.js : initGifEncoder = () => { start = () => { add = () => { stop = () => { to this: initGifEncoder() { start() { add () { stop () { |
const basePath = process.cwd(); const network = NETWORK.eth; // General metadata for Ethereum const solanaMetadata = { // If you have selected Solana then the collection starts from 0 automatically const shuffleLayerConfigurations = false; const debugLogs = false; const format = { const gif = { const text = { const pixelFormat = { const background = { const extraMetadata = {external_url: "http://soulbrono1.xyz" const rarityDelimiter = "#"; const uniqueDnaTorrance = 10000; const preview = { const preview_gif = { module.exports = { |
@larryj52 I haven't run into any problems with that, I assume you have a You could try updating node. |
I'll try |
Problem not resolved. I re installed node.js and updated visual basic. getting new error messages. WHat does this mean: (node:43978) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead TypeError: Cannot read properties of undefined (reading 'path') Node.js v17.4.0 |
@larryj52 I think this can happen if you have DNA_DELIMITER ( |
Not sure why I keep getting unexpected token. tried to change it to a couple of other tokens to see if anything changes but it gets upset...I'm using version 10 of node...
initGifEncoder = () => {
^
SyntaxError: Unexpected token =
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/Users/alexis/hashlips_art_engine/src/main.js:32:24)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
Here's where it's directing me to the editor
initGifEncoder = () => {
this.gifEncoder = new GifEncoder(this.canvas.width, this.canvas.height);
this.gifEncoder.setQuality(this.quality);
this.gifEncoder.setRepeat(this.repeat);
this.gifEncoder.setDelay(this.delay);
};
The text was updated successfully, but these errors were encountered: